Sign in with
Sign up | Sign in
Your question

net user to add accounts awith password never expires select

Last response: in Networking
September 22, 2006 6:48:39 PM

i am having issues here. i have created a script to add 142 users to 16 travel servers and add them to their appropraite gourps. i am trying script it so that it marks the user cannot change password, and also so that it marks password never expires. here is what i have:

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

this works, except it makes it so the account itself never expires, what do i need to do to have it set the passwrd so it never expires as well?

any help would be greatly appreciated,

a very frustraded network admin. :?
September 22, 2006 8:17:31 PM

Their is no option for "net user" to do this from command line.

September 22, 2006 8:32:00 PM

is there any other way to do it in an automated "script". either .vbs or .bat or anything?