Rocket Man Posted August 30, 2012 Report post Posted August 30, 2012 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 Quote Share this post Link to post Share on other sites More sharing options...
wdge Posted August 30, 2012 Report post Posted August 30, 2012 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 Quote Share this post Link to post Share on other sites More sharing options...
Rocket Man Posted August 30, 2012 Report post Posted August 30, 2012 Hi Does this make the user a standard user with no rights to the local machine?? This is what i need to achieve! Rocket Man Quote Share this post Link to post Share on other sites More sharing options...
wdge Posted August 30, 2012 Report post Posted August 30, 2012 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. Quote Share this post Link to post Share on other sites More sharing options...
Rocket Man Posted August 30, 2012 Report post Posted August 30, 2012 No i need a standard user...thanks Will try this tomorrow Rocket Man Quote Share this post Link to post Share on other sites More sharing options...
Rocket Man Posted August 31, 2012 Report post Posted August 31, 2012 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 Quote Share this post Link to post Share on other sites More sharing options...