Jump to content

Passwords Expire


Recommended Posts

I put the command to set the passwords for unlimited expiration time, and they won't set. It won't even set them to not expire if i try putting it in the cmd prompt. For some reason, it'll only work if I do it manually for each account. Any suggestions? I need to get a workable Unattended Installation CD with accounts that won't expire. Thanks

Link to comment
Share on other sites


/EXPIRES:{date | NEVER}

date

An expiration date is in the form mm/dd/yy(yy). Months can be a number, spelled out, or abbreviated with three letters. Year can be two or four numbers.

Use slashes(/) (no spaces) to separate parts of the date.

NEVER

Sets no time limit on the account.

Link to comment
Share on other sites

This is the line I have in my user-creation script that sets an unlimited password age:

net accounts /maxpwage:unlimited

If this line does not exist in yours, I suggest adding it and trying again. I believe all other replies are making reference to an actual expiration date for the account, not the passwords. (That is, whether or note the account should be disabled after a certain date.)

Hope this helps.

Link to comment
Share on other sites

This is the line I have in my user-creation script that sets an unlimited password age:

net accounts /maxpwage:unlimited

If this line does not exist in yours, I suggest adding it and trying again. I believe all other replies are making reference to an actual expiration date for the account, not the passwords. (That is, whether or note the account should be disabled after a certain date.)

Hope this helps.

this is the one i used, and it doesn't work for me. even running manually from the cmd prompt. i'll try the other listed above and see if it works. thanks for the replies.

Link to comment
Share on other sites

if those don't work just search the current forum for a "netuser" tool and use it like this :

netuser username /pwnexp:y

this app comes from sysinternals i believe but its posted in here somewhere for download.

wow, thanks alot!!! this netuser tool did the trick :)

Link to comment
Share on other sites

Users are not added through WINNT.SIF, that I know of. I use a useraccounts.cmd script file to add them from cmdlines.txt.

net user Username password /add
net localgroup Administrators Username /add
net accounts /maxpwage:unlimited
REGEDIT /S autologon.reg
EXIT

If you leave out the password from the "net user add" line, the user will be created without a password. Like so:

net user Username /add

Hope this helps.

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