Pages

Thursday, December 19, 2013

add users windows 7 command line

add users windows 7 command line

My requirement is to automate creation of users thereby passing username and password in command line in Windows 7.

After searching a lot, I finally got a solution.

Note:

  1. The following commands must be run as Administrator account.
  2. To run a command as Administrator account, refer this link. http://blogforopensource.blogspot.in/2013/09/wrapper-openscmanager-failed-access-is.html
 Command:

net user username password /ADD
 
Reference:
http://www.windows-commandline.com/add-user-from-command-line/

No comments:

Post a Comment