Jump to content


Rocket Man

Create local standard User with Password

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.