{"id":269451,"date":"2021-06-08T21:00:18","date_gmt":"2021-06-08T18:00:18","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/how-to-disable-fix-password-expiration-in-windows-server-cloudsavvy-it\/"},"modified":"2021-06-08T21:00:18","modified_gmt":"2021-06-08T18:00:18","slug":"how-to-disable-fix-password-expiration-in-windows-server-cloudsavvy-it","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/how-to-disable-fix-password-expiration-in-windows-server-cloudsavvy-it\/","title":{"rendered":"#How to Disable &#038; Fix Password Expiration in Windows Server \u2013 CloudSavvy IT"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a3be26d982fe\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a3be26d982fe\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-disable-fix-password-expiration-in-windows-server-cloudsavvy-it\/#The_Problem\" >The Problem<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-disable-fix-password-expiration-in-windows-server-cloudsavvy-it\/#Fixing_It_Early\" >Fixing It Early<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-disable-fix-password-expiration-in-windows-server-cloudsavvy-it\/#What_to_Do_If_Youve_Already_Been_Locked_Out\" >What to Do If You\u2019ve Already Been Locked Out<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-disable-fix-password-expiration-in-windows-server-cloudsavvy-it\/#Resetting_with_Win_PE\" >Resetting with Win PE<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-disable-fix-password-expiration-in-windows-server-cloudsavvy-it\/#Resetting_with_Linux_and_chntpw\" >Resetting with Linux and chntpw<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<p><strong>&#8220;#How to Disable &amp; Fix Password Expiration in Windows Server \u2013 CloudSavvy IT&#8221;<\/strong><\/p>\n<div id=\"article-content-area\">\n<img loading=\"lazy\" decoding=\"async\" class=\"type:primaryImage alignnone wp-image-11837 size-full\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/06\/c64623ce.png?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Windows Server logo\" width=\"700\" height=\"350\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Windows Server passwords expire. After a while, your password will be invalid, and you will need to \u201ccontact your IT administrator\u201d to reset it manually. But what h<a href=\"https:\/\/buradabiliyorum.com\/en\/category\/download-scripts-themes-apps\/\" data-internallinksmanager029f6b8e52c=\"9\" title=\"Download Scripts &amp; Themes &amp; Apps\" target=\"_blank\" rel=\"noopener\">app<\/a>ens when <em>you<\/em> are the IT administrator?<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"The_Problem\"><\/span>The Problem<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>By default, Windows Organizations have password expiration turned on. The idea is that you must change your password every so often (The default is only 42 days.) to minimize the impact of security breaches. This is a good idea for large organizations, but if you\u2019re just trying to run a machine with Windows Server, it can be quite annoying.<\/p>\n<p>Even worse, if you\u2019re new to Windows hosting, you might have missed the prompt about it expiring if you didn\u2019t log in recently. By default, nothing is set up to warn you if you don\u2019t sign in regularly. This can actually completely lock you out of your account, requiring a server restart into rescue mode.<\/p>\n<p>Luckily, it\u2019s pretty easy to turn off the feature before it\u2019s a problem, and if you did get locked out by password expiration, booting into rescue mode will fix the issue by allowing you to reset the password from outside of the operating system.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"Fixing_It_Early\"><\/span>Fixing It Early<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The way to prevent passwords from expiring is to just disable them using the Local Users and Groups control panel. Open it up by searching for\u00a0<strong>lusrmgr.msc\u00a0<\/strong>in the start or run menus.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-11839 size-full\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/06\/18a8e55d.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Open the Local Users and Groups control panel by searching for lusrmgr.msc in the start or run menus. \" width=\"700\" height=\"405\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Click on \u201cUsers\u201d and find your user account. Right-click and view properties, and then check \u201cPassword Never Expires\u201d under the settings.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-11834 size-full\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/06\/58da245b.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"After finding your user account under \" users=\"\" right-click=\"\" and=\"\" view=\"\" properties=\"\" then=\"\" check=\"\" never=\"\" expires=\"\" under=\"\" the=\"\" settings.=\"\" width=\"700\" height=\"543\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Alternatively, you can do this manually from the command line:<\/p>\n<pre>wmic UserAccount where Name=\"username\" set PasswordExpires=False<\/pre>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"What_to_Do_If_Youve_Already_Been_Locked_Out\"><\/span>What to Do If You\u2019ve Already Been Locked Out<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you\u2019ve already been locked out, you might be getting an error that says <em>\u201cYou must change your password before logging on for the first time. Please update your password or contact your system administrator.\u201d<br \/><\/em><\/p>\n<p>Unfortunately, this means that you\u2019ve probably been locked out unless you\u2019re able to reset the password from elsewhere in your organization. If you don\u2019t have outside access, this might have just cut off your only credentials for access to the server.<\/p>\n<p>You might not need RDP credentials, though. Some server providers offer direct KVM access, which could allow you to bypass your remote login and change the password from there. You should try this first, as it will result in no downtime.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Resetting_with_Win_PE\"><\/span>Resetting with Win PE<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>You will need to boot the server into a rescue operating system. Many providers should have this option\u2014for example, OVH allows you to change the netboot mode to a\u00a0Windows Preinstallation Environment, or Win PE. This allows you to use tools like NTPWEdit to modify SAM files directly.<\/p>\n<p>To use it, you\u2019ll need to open the SAM file, unlock the user that you want to modify, and click \u201cChange Password.\u201d Enter it twice and click \u201cSave Changes.\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-11840 size-full\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/06\/3b4a67c6.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Open the SAM file, unlock the user that you want to modify, and click &quot;Change Password&quot; before entering the password twice and clicking \" save=\"\" changes.=\"\" width=\"587\" height=\"356\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Resetting_with_Linux_and_chntpw\"><\/span>Resetting with Linux and chntpw<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Alternatively, you could be given a Linux-based rescue system like <code>rescue64-pro<\/code>. In this case, you\u2019ll need to mount the Windows drive and change it manually with <code>chntpw<\/code>.<\/p>\n<p>List the disks and mount the main partition:<\/p>\n<pre>fdisk -l&#13;\nmount \/dev\/sda4 \/mnt<\/pre>\n<p>Navigate to the location of the SAM file and run <code>chntpw<\/code><\/p>\n<pre>cd \/mnt\/Windows\/System32\/config&#13;\nchntpw -l SAM<\/pre>\n<p>Then, follow the prompts to clear the password for your account.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-11841 size-full\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/06\/d222786b.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Follow the prompts to clear the password for your account.\" width=\"700\" height=\"585\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>You\u2019ll need to log back in with the blank password and change it to something secure.\n<\/p><\/div>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.cloudsavvyit.com\/11832\/how-to-disable-fix-password-expiration-in-windows-server\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;#How to Disable &amp; Fix Password Expiration in Windows Server \u2013 CloudSavvy IT&#8221; Windows Server passwords expire. After a while, your password will be invalid, and you will need to \u201ccontact your IT administrator\u201d to reset it manually. But what happens when you are the IT administrator? The Problem By default, Windows Organizations have password&#8230;<\/p>\n","protected":false},"author":1,"featured_media":269452,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/06\/c64623ce.png","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-269451","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/269451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=269451"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/269451\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/269452"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=269451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=269451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=269451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}