To display a list of all user accounts for the local computer, type
To view information about the user account jimmyh, type
net user jimmyh
To add a user account for Henry James, with logon rights from 8 A.M. to 5 P.M.
Monday through Friday (no spaces in time designations), a mandatory password,
and the user's full name, type
net user henryj henryj /add /passwordreq:yes
The username (henryj) is entered the second time as the password.
To set johnsw's logon time (8 A.M. to 5 P.M.) using 24-hour notation, type
net user johnsw /time:M-F,08:00-17:00
To set johnsw's logon time (8 A.M. to 5 P.M.) using 12-hour notation, type
net user johnsw /time:M-F,8am-5pm
To specify 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 marysl, type
net user marysl /time:M,4am-5pm;T,1pm-3pm;W-F,8:00-17:00
To set /homedirreq to yes for henryj and assign \\SERVER\USERS\HENRYJ as the home directory, type
net user henryj /homedirreq:yes
More Information About Net User