Kedgeboy
asked on
using NET command to Create a user and expire their password?
Hello
I need to write a batch script which will create a user, add them as an admin and then ask them to change their password at next login.
The script I have at the moment is:
net user Admin changeme /add
net localgroup Administrators Admin /add
This creates the user "Admin" and sets their password to "changeme", what command would I use to make them change their password at next login?
I need to write a batch script which will create a user, add them as an admin and then ask them to change their password at next login.
The script I have at the moment is:
net user Admin changeme /add
net localgroup Administrators Admin /add
This creates the user "Admin" and sets their password to "changeme", what command would I use to make them change their password at next login?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Here is a list of the available command line switches:
http://support.microsoft.com/default.aspx?scid=kb;en-us;251394&sd=tech