Skip to content

Create local standard User with Password

Featured Replies

Hi

 

Is there a way to create a sandard user and set a password during a workgroup OSD. basically i have an answerfile that will create the local admin account and set the password which i created in WAIK. I can create domain groups on the local machine with the following command cmd /c net localgroup "Administrators" "domain\securitygroup" /add

 

Is there a simple command like this to create a new standard user that is only a member of the local users group and also set a password at the same time?

 

much appreciated

 

Rocket Man

I use the following in a bat-file:

 

:: Creates the local user
net user myUsername /ADD /expires:never /PASSWORDCHG:NO

:: Set the password
net user myUsername myPassword

:: Set the password to never expire
WMIC USERACCOUNT WHERE "Name='myuserName'" SET PasswordExpires=FALSE

It's the same as making a user in the GUI (local user & groups), meaning the user would be a member of the default "users" group. It would not be a member of the administrator group though which I'm guessing is what you are asking about.

  • Author

Hi

 

thanks for your help....the above did not work for me but did give me a good starting point....have it working the way i need to now...

 

Thanks again

 

Rocket Man

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.