

If your Windows password is expired and unable to change password on the login screen, you’re completely locked out of your computer and all of the methods above won’t work for your case. Method 5: Set Windows Password to Never Expire Using a Boot CD

This will set password to never expire for all your Windows local accounts. Type the following command and hit Enter. Open the Command Prompt as Administrator. You can also apply the password expiration policy using command line. Go to Account Policies -> Password Policy, ensure the Maximum password age is set to 0, meaning that passwords never expire. Type secpol.msc and press Enter to open the Local Security Policy Editor. Press the WIN + R keys to open the Run command box. Method 4: Set Password to Never Expire for All Accounts Using Group Policy Set-LocalUser -Name "pcunlocker" -PasswordNeverExpires 1 You can use the Set-LocalUser cmdlet to modify a local user account and set its password to never expire: Method 3: Set Windows Password to Never Expire Using PowerShell Wmic useraccount where "Name='pcunlocker'" set PasswordExpires=false Replace “pcunlocker” with the name of your local account: Type the following command and press Enter. Method 2: Set Windows Password to Never Expire from Command Line In our example, it showed that the password of my account “pcunlocker” will never expire. Just look for the line beginning with “Password expires” and you can see the password expiration date. The output of this command will give you a lot of information about account. When done, close the Computer Management and you can determine when the password of your Windows account will expire. Right-click on the user with an expired password in the middle pane and select Properties.Ĭheck the “ Password never expires” box and click OK. When the Computer Management console launches, go to System Tools -> Local Users and Groups -> Users. Right-click the My Computer (This PC) icon on your desktop and then select Management from the pop-up menu. Method 1: Set Windows Password to Never Expire Using Computer Management What to do if you forgot your old password or you get the access denied error when you try to change the password? In this tutorial we’ll show you 5 ways to set password to never expired for Windows local account. My password has expired and now I am completely locked out of my computer? When you log into Windows, you might receive a message that says “ Your password has expired and must be changed“.
