net user
2) Command to add a new user account with a password:
net user /add Lenny{username} mango{pass}
3) Command to add an user account to administrator group:
net localgroup administrator Lenny /add
4) To give the full administrator right to the user,use following command:
net share concfg*C:\/grant:useraccountname,full
net user jayj Cyk4^g3B /add /passwordreq:yes /times:monday-friday,8am-5pm /fullname:"Jay Jamison"
6) The following example sets the logon time (8 A.M. to 5 P.M.) for Lenny by using 24-hour notation:
net user Lenny /time:M-F,08:00-17:00
7) The following example sets the logon time (8 A.M. to 5 P.M.) for Lenny by using 12-hour notation:
net user Lenny /time:M-F,8AM-5PM
8) The following example specifies logon hours of 4 A.M. until 5 P.M. on Monday, 1 P.M. until 3 P.M. on Tuesday, and 8 A.M. until 5 P.M. Wednesday through Friday for Penny:
net user Penny /time:M,4AM-5PM;T,1PM-3PM;W-F,8:00-17:00
Comments
Post a Comment