Jump to content

[Help] - setting "Password never expires" from script, reg,


chekm8

Recommended Posts

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.html

http://support.microsoft.com/default.aspx?...kb;en-us;251394

Any input would be greatly appriciated. Thank you.

Title Edited - Please follow new posting rules from now on.

--Zxian

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...