chekm8 Posted January 4, 2006 Posted January 4, 2006 Guys,Here's a question for you. "Password never expires", how can I set/check that using the command line? I know it's easier to just click on it but I need to implement this to more than 2000 boxes. On our recent Windows XP build, we decided to create local accounts to the box and forgot to set the "Password never expires" button. Now they're starting to expire and would like to know if there was a quick and easy way to set that field. The accounts are local only to the box and isn't managed by AD. Sure I can create policies on AD but there are other issues that might come about if I try that route. I would like to push a script (be it login script, SMS, etc...) to permanently flag that field.I've tried NET USER and that doesn't seem to flag the field.Sources for NET USE/NET USER;http://www.ss64.com/nt/netuseroptions.htmlhttp://support.microsoft.com/default.aspx?...kb;en-us;251394Any input would be greatly appriciated. Thank you.Title Edited - Please follow new posting rules from now on.--Zxian
Takeshi Posted January 5, 2006 Posted January 5, 2006 You can do it with VBS using ADS_UF_DONT_EXPIRE_PASSWD as the constant.e.g. for some pointers:http://www.microsoft.com/technet/scriptcen...04/hey1202.mspxThere're quite a few on Google, this one e.g.http://www.markwilson.co.uk/blog/2004/09/s...-expiry-for.htm
nmX.Memnoch Posted January 5, 2006 Posted January 5, 2006 I use a utility called NETUSER.EXE. I can't remember where I found it at and wasn't able to find it on Google again so I've just attached it. Syntax is as follows:NETUSER username /pwnexp:yYou can also rename accounts with it.NETUSER.zip
Doc Symbiosis Posted January 5, 2006 Posted January 5, 2006 You set can this for all users with the following commandnet accounts /maxpwage:unlimited
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now