How to stop Windows passwords from expiring

One of the features found in Windows is password expiry, where the users are restricted from re-using a password that has reached a certain week of expiry. Although the existence of this feature is beneficial to the security of the accounts, this particular feature is disadvantageous to some users, especially those who have been using a single password for a long time. In this database of information, we will take our time to discuss how to prevent your Windows password from expiring.


Disabling Password Expiration Using Local Users and Groups


Thus, turning off password expiration is possible with the help of the Local Users and Groups instrument. Here is the method to accomplish it:


  1. Access the Local Users and Groups Window by following these steps: In order to perform the next Win+R type,e in lusrmgr with the help of your keyboard. msc, then press Enter, usually on the keyboard.

  2. To view all the user accounts in the window, navigate to the left pane and double-click the "Users" folder.

  3. To completely exclude a certain user account from the password expiration, you right-click the user account and click on "Properties".

  4. On the 'General' tab, you make sure that there is a tick in the 'Password never expires' box and then click on the 'OK' button.


Disabling Password Expiration Using Command Prompt


If you are a fan of the terminal, there is an option you likewise can turn off password expiration using the wmic command in the elevated Command Prompts:


  1. Click on the Windows button and start typing 'command prompt'. Right-click on it and click on 'run as administrator' to open the command prompt as an administrator.

  2. The following command should be typed, and the enter key should be pressed.


wmic UserAccount where Name="username" set PasswordExpires=False


Change "username" with the username of the particular account you want to edit.

If you wish to omit the process of password expiry for each user account, then click on the following:


wmic UserAccount set PasswordExpires=False

Disabling Password Expiration Using PowerShell


PowerShell offers another way to turn off password expiration:


  1. To open the Run dialogue box, you press Win + R on the keyboard, type 'PowerShell', and then right-click and select Run as administrator.

  2. Run the following command to turn off password expiration for a specific user account:


Powershell


Set-LocalUser -Name "username" -PasswordNeverExpires $true


Insert the real username of the account that you wish to alter in place of the "username" in the representation.


To block the expiration of passwords across all the user accounts, use the particular command:


PowerShell


Get-LocalUser | Set-LocalUser -PasswordNeverExpires $true


Understanding Password Expiration Policies

System administrators or group policies usually determine password expiration policies. If you are not able to turn off password expiration using the methods mentioned, a policy is likely requiring the expiry.


To confirm if a policy exists:


  • To open the Local Security Policy editor, use the keys Win + R and then insert the command secpol MSC, and hit Enter.

  • Access the main window of the Local Security Policy, expand the "Security Settings" folder, and then move down to the "Account Policies" folder; finally, click on the "Password Policy" node on the left side.

  • Locating the "Maximum password age" setting is done in the right pane. If the value is not 0, passwords have to be changed following the number of days indicated.


If you are a local admin and find yourself in a position where you cannot alter the specific policy, this is more than likely being controlled by a domain controller or a GPO. You should seek help from your system administrator or IT support in the cases mentioned above.


Conclusion


It is also beneficial to permanently turn off password expiration since it can be helpful, and the users may easily forget the new passwords. Nevertheless, striking a balance between security and usability is vital when making this determination. Before turning off password expiration for all user accounts, think about the possible dangers and advantages if you oversee a network or system.



Was this answer helpful? #1 #4
 

Did We Miss Out on Something?

Relax, we have you covered. At Go4hosting, we go the extra mile to keep our customers satisfied. We are always looking out for opportunities to offer our customers “extra” with every service. Contact our technical helpdesk and we’d be more than happy to assist you with your Cloud hosting, Colocation Server, VPS hosting, dedicated Server or reseller hosting setup. Get in touch with us and we’d cover all your hosting needs, however bizarre they might be.

Submit your Query

  • I'm not a robot

Browse by ServicesBrowse by Services

Resource Library

What is Cloud Computing

Understand the term cloud computing, the ongoing trend, its playing field, future growth and how industry...

Myths about Cloud Computing

Cloud computing, in the recent years, has become a subject of significant discussion among the industry experts.

Download Now

Did We Miss Out on Something?

Relax, we have you covered. At Go4hosting, we go the extra mile to keep our customers satisfied. We are always looking out for opportunities to offer our customers “extra” with every service. Contact our technical helpdesk and we’d be more than happy to assist you with your Cloud hosting, Colocation Server, VPS hosting, dedicated Server or reseller hosting setup. Get in touch with us and we’d cover all your hosting needs, however bizarre they might be.

Submit Query

Please fill in the form below and we will contact you within 24 hours.