Jump to content

How to set no password expiry


Recommended Posts

Here's a question I've been wondering about but haven't really cared about finding out the answer. So I'll throw it in here and see what you guys think.

I have an answer file that creates 1 or 2 accounts during the oobe phase, it also sets a logon count for one of them. One complaint I hear about is that the Password will expire on any of the accounts after a certain amount of time. This can be fixed manually by checking the Password never expires box on the Account Properties, but how can this be done with the answer file?

Link to comment
Share on other sites


Im using this in my unattend.xml files:


<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<CommandLine>net accounts /maxpwage:unlimited</CommandLine>
<Order>1</Order>
</SynchronousCommand>
</FirstLogonCommands>

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