1.

Solve : Need help creating batch to add new users?

Answer»

I am trying to create a batch file that will make a new user in Windows 2000. Here are the requirements:

1. I must be prompted to SET the password
2. The user must be made a member of the local Admin group and removed from local user group
3. User cannot change password
4. Password never expires


Here is what I have so FAR:

NET USER MisysAdmin m!5y5XXX /ADD /FULLNAME:"Misys Admin Account" /COMMENT:"Misys Admin Account – DO NOT CHANGE" /PASSWORDCHG:YES /PASSWORDREQ:YESNot enough information. Where is the data coming from, hardcoded or an external source? Is this ACTIVE DIRECTORY?

Information on NET USER command:

http://support.microsoft.com/default.aspx?scid=kb;es-xl;251394&sd=tech

Use the set /p VAR="promptstring" command to prompt for the password.

Hope this helps.



Discussion

No Comment Found