Password expiration interval vs Account expiration date

Password Expiration

Windows may notify you at log-on that your password is expired and ask whether you want to change it now. The default interval that users were notified of password expiration is 5 days before expiration.

Password expiration interval specifies the number of days allowed before a password must be changed. Its purpose is to help enforce password policies in a business environment.

User Account Expiration

User account expiration is another similar built-in feature in Windows. It allows you to create a temporary user account that will expire automatically on the specified dates.

Upon reaching the expiration date, the user account is expired and you are unable to log on Windows any more. This feature is very useful when you need to create a Windows user account on a temporary basis.

Difference Between User Account Expiration and Password Expiration

If your Windows password has expired, you are required to change the password at the logon screen. After changing it, you can then log back into Windows with your new password. But if your user account is expired, Windows doesn’t provide you any option for you to log in to that user account.

1. How to Turn Off Password Expiration?

The simple solution to turn off password expiration is open a elevated command prompt and execute the following command:

net accounts /maxpwage:unlimited

However, that will set the maximum password age for all accounts on the local machine to unlimited, not just the new accounts that you have created.

If you need to turn off password expiration for an individual user account, then run this command on the Command Prompt:

WMIC USERACCOUNT WHERE Name=’Tom’ SET PasswordExpires=FALSE

Remember to replace Tom with the existing user account on your local computer.

2. How to Turn Off User Account Expiration?

Using the net user command you can turn off user account expiration easily. Just enter the following command, replacing Tom with your actual account name:

net user Tom /expires:never

Most computer users might have misunderstood about the net user command above, thinking it would turn off password expiration. Actually, it is designed to set a expiration date for a user account or turn off user account expiration.

3. How to Turn Off both User Account Expiration and Password Expiration in Active Directory?

  1. Click Start, highlight “Administrative Tools” and select “Active Directory Users and Computers”.
  2. Now, expand your domain name on the left side, and go to the node where it says “Users”.
  3. Right-click the domain user account from the right panel, and then click Properties.
  4. On the Account tab, you can tick the “Password never expires” checkbox, and set “Account Expires” to “Never”.

Password expiration interval vs Account expiration date was last modified: April 10th, 2018 by tabcom