{"id":9887,"date":"2017-08-10T08:55:01","date_gmt":"2017-08-10T08:55:01","guid":{"rendered":"https:\/\/www.top-password.com\/blog\/?p=9887"},"modified":"2017-08-10T09:36:58","modified_gmt":"2017-08-10T09:36:58","slug":"set-password-to-never-expire-for-windows-local-account","status":"publish","type":"post","link":"https:\/\/www.top-password.com\/blog\/set-password-to-never-expire-for-windows-local-account\/","title":{"rendered":"5 Ways to Set Password to Never Expire for Windows Local Account"},"content":{"rendered":"<p>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 &#8220;<em>Your password has expired and must be changed<\/em>&#8220;. 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&#8217;ll show you 5 ways to set password to never expired for Windows local account.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2017\/08\/windows-password-expired.jpg\" alt=\"\" width=\"600\" height=\"440\" class=\"alignnone size-full wp-image-9914\" \/><\/p>\n<p><strong>Method 1: Set Windows Password to Never Expire Using Computer Management<\/strong><\/p>\n<p>Right-click the <strong>My Computer<\/strong> (This PC) icon on your desktop and then select <strong>Management<\/strong> from the pop-up menu.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2016\/05\/manage-this-pc.png\" alt=\"\" width=\"345\" height=\"286\" class=\"alignnone size-full wp-image-6843\" \/><\/p>\n<p>When the Computer Management console launches, go to <strong>System Tools<\/strong> -> <strong>Local Users and Groups<\/strong> -> <strong>Users<\/strong>. Right-click on the user with an expired password in the middle pane and select <strong>Properties<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2017\/08\/windows-account-properties.png\" alt=\"\" width=\"583\" height=\"289\" class=\"alignnone size-full wp-image-9893\" \/><\/p>\n<p>Check the &#8220;<strong>Password never expires<\/strong>&#8221; box and click <strong>OK<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2017\/08\/password-never-expires.png\" alt=\"\" width=\"400\" height=\"455\" class=\"alignnone size-full wp-image-9894\" \/><\/p>\n<p>When done, close the Computer Management and you can determine when the password of your Windows account will expire. Open a Command Prompt and type:<\/p>\n<p><code>net user account_name<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2017\/08\/find-windows-password-expiration-date.png\" alt=\"\" width=\"495\" height=\"313\" class=\"alignnone size-full wp-image-9906\" \/><\/p>\n<p>The output of this command will give you a lot of information about account. Just look for the line beginning with &#8220;Password expires&#8221; and you can see the password expiration date. In our example, it showed that the password of my account &#8220;pcunlocker&#8221; will never expire.<\/p>\n<p><strong>Method 2: Set Windows Password to Never Expire from Command Line<\/strong><\/p>\n<p>Open the Command Prompt as Administrator. Type the following command and press Enter. Replace &#8220;pcunlocker&#8221; with the name of your local account:<\/p>\n<p><code>wmic useraccount where \"Name='pcunlocker'\" set PasswordExpires=false<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2017\/08\/set-password-never-expires-via-command-line.png\" alt=\"\" width=\"520\" height=\"194\" class=\"alignnone size-full wp-image-9895\" \/><\/p>\n<p><strong>Method 3: Set Windows Password to Never Expire Using PowerShell<\/strong><\/p>\n<p>Open the PowerShell as Administrator. You can use the <em>Set-LocalUser<\/em> cmdlet to modify a local user account and set its password to never expire:<\/p>\n<p><code>Set-LocalUser -Name \"pcunlocker\" -PasswordNeverExpires 1<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2017\/08\/set-password-never-expires-via-powershell.png\" alt=\"\" width=\"585\" height=\"124\" class=\"alignnone size-full wp-image-9896\" \/><\/p>\n<p><strong>Method 4: Set Password to Never Expire for All Accounts Using Group Policy<\/strong><\/p>\n<p>Press the WIN + R keys to open the Run command box. Type <strong>secpol.msc<\/strong> and press Enter to open the Local Security Policy Editor. Go to <strong>Account Policies<\/strong> -> <strong>Password Policy<\/strong>, ensure the <strong>Maximum password age<\/strong> is set to 0, meaning that passwords never expire.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2017\/08\/maximum-password-age.png\" alt=\"\" width=\"584\" height=\"274\" class=\"alignnone size-full wp-image-9897\" \/><\/p>\n<p>You can also apply the password expiration policy using command line. Follow these steps:<br \/>\nOpen the Command Prompt as Administrator. Type the following command and hit Enter.<\/p>\n<p><code>net accounts \/maxpwage:unlimited<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2017\/08\/windows-password-expiration-policy.png\" alt=\"\" width=\"505\" height=\"172\" class=\"alignnone size-full wp-image-9898\" \/><\/p>\n<p>This will set password to never expire for all your Windows local accounts.<\/p>\n<p><strong>Method 5: Set Windows Password to Never Expire Using a Boot CD<\/strong><\/p>\n<p>If your Windows password is expired and unable to change password on the login screen, you&#8217;re completely locked out of your computer and all of the methods above won&#8217;t work for your case. Then you have to use a password utility called <a style=\"text-decoration:underline;\" href=\"http:\/\/www.top-password.com\/reset-windows-password.html\">PCUnlocker<\/a>, which can reset your forgotten Windows password, as well as setting your password to never expire.<\/p>\n<p>To start, you need to make a PCUnlocker Live CD (or USB drive) from an accessible PC. Next boot your locked computer from the CD. Select the account with an expired password and click on &#8220;<strong>Reset Password<\/strong>&#8221; button. The program will remove your Windows password and disable password expiration for your account.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.top-password.com\/blog\/wp-content\/uploads\/2017\/08\/disable-windows-password-expiration.png\" alt=\"\" width=\"545\" height=\"489\" class=\"alignnone size-full wp-image-9915\" \/><\/p>\n<p>Reboot and eject the CD, you can then log into your Windows account with no warning of user password&#8217;s about to expire. That&#8217;s it!<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>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 &#8220;Your password has expired and must be changed&#8220;. What to do if you forgot your old password or you get the access denied error when you try to change [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,10,1894,3,39,5,4],"tags":[986,3500,984],"class_list":["post-9887","post","type-post","status-publish","format-standard","hentry","category-others","category-tips-tricks","category-windows-10","category-windows-7","category-windows-8","category-windows-vista","category-windows-xp","tag-disable-windows-password-expiration","tag-set-windows-password-to-never-expire","tag-windows-password-expired"],"_links":{"self":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/9887","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/comments?post=9887"}],"version-history":[{"count":19,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/9887\/revisions"}],"predecessor-version":[{"id":9917,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/posts\/9887\/revisions\/9917"}],"wp:attachment":[{"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/media?parent=9887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/categories?post=9887"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.top-password.com\/blog\/wp-json\/wp\/v2\/tags?post=9887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}