Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

net user options in a batch file

thebucs

Posted 22 September 2006 - 10:24 AM

ok, after all this time, i had to change the script to add the following options:
user cannot change password, and password never expires. here is what i have figured out.

net user ons1 #!wdfons1 /add /expires:never /passwordchg:no

the result of this is the line saying the comand completed successfully, it adds the user,
however when i look at the user properties, i see that the user cannot change
password selection is marked, but the password nerver expires box is not
marked.

i am running this on windows 2000 server

what have i done wrong now. microsoft website was no help, it said to do exactly what i have done. i figured it was time to consult the experts, so i am asking Geeks To Go any help would be greatly appreciated.