When you login to your Windows computer, you may get an error message like this:
Your password has expired and must be changed
In normal circumstances, it’s absolutely fine for Windows to remind you of password change after every specific no. of days but in some conditions, this practice should be disabled. A couple of scenarios could include the following:
- An administrator user should not have automatic expiration of password as this will lock you out of the computer if the password is not changed on regular basis.
- Another condition can be when you are accessing your computer remotely. If the password expires, you won’t be able to reset it remotely and will need physical access to the system.
In this tutorial, we will share three ways to set Windows local user account passwords to never expire. We will discuss about:
- How to set Windows local user account passwords to never expire for all users.
- How to set Windows local user account passwords to never expire for a specific user.
If you are using Windows 10 Home edition, you can enable Group Policy Editor for Windows 10 Home Edition.
- 1 Configure password expiration using User Management
- 2 Configure password expiration using command-line
- 3 Configure password expiration using PowerShell
Configure password expiration using User Management
Windows makes it easier for us to manage local users of the system.
Password never expire for a specific user
Just follow the steps below to set a specific user account passwords to never expire:
- Go to Run –> lusrmgr.msc. This opens user management console.
- Select Users from the left hand menu.
- Right-click the user which you want to configure and select Properties.
- In General tab, check the checkbox “Password never expires”. Or simply press Alt + P keyboard shortcut.
Password never expire for all users
If you want that the password for all users in your system should never expire, follow the instructions below:
- Go to Run –> gpedit.msc
- Navigate to the following tree:
Computer configuration –> Windows Settings –> Security Settings –> Account Policies –> Password Policy
- In the right-hand pane, select “Maximum password age” and set it to 0.
Setting the maximum password age to zero will disable the password expiration feature in Windows.
Configure password expiration using command-line
If you are comfortable with command-line or want to do this remotely, you can use Windows commands for enabling and disabling the above mentioned policies.
Password never expire for a specific user using command-line
Open command-prompt with administrative privileges and run the following command sequence:
- Get the name of users currently active on the system using this command: net accounts
- Run the following command:
wmic useraccount where “Name=’itechticsuser'” set PasswordExpires=false
Replace ‘itechticsuser’ with the name of user you want to configure.
Password never expire for all users using command-line
Open command-prompt with administrative privileges and run the following command:
- net accounts /maxpwage:unlimited
Configure password expiration using PowerShell
You can achieve the same results using PowerShell
Password never expire for a specific user using PowerShell
- Press Windows Key + X + A keyboard shortcut sequence to open PowerShell with administrative privileges.
- Run the following command:
Set-LocalUser -Name “itechticsuser” -PasswordNeverExpires 1
Replace itechticsuser with your desired username.
Interesting Reads Next:
- How To Login As Administrator In Windows 10
- How to Find Wifi Password in Windows 10 Using Command Line
- 2 Ways To Find All Saved Wifi Passwords In Windows 10
- 4 Ways To Rename Computer In Windows 10 Quickly
- 5 Ways To Show/Hide File Extensions In Windows 10