Blog

This article explains how an administrator can prevent users from changing their passwords in Windows. You can either hide the password change dialog or completely block users from modifying their passwords.

You can purchase original Windows Server product keys from our catalog from $10.00

Disabling the “Password Expired and Must Be Changed” Prompt

By default, Windows requires periodic password changes. When a password expires, users see a “Password expired and must be changed” message upon login. You can disable this requirement to prevent users from changing their passwords.

Preventing Password Changes for a Specific User via User Management Console

1. Open the Local Users and Groups console by running the command:

lusrmgr.msc

2. Navigate to the Users section.

3. Find the desired user account, right-click it, and select Properties.

4. Check the following options:

– User cannot change password

– Password never expires

Using PowerShell to Prevent Password Changes

To perform the same actions via PowerShell, use the following command:

Get-LocalUser user1 | Set-LocalUser –PasswordNeverExpires $True -UserMayChangePassword $False

Replace user1 with the username of the account.

Disabling Password Expiration for All Users

To disable password expiration for all local users, follow these steps:

1. Open the Group Policy Editor by running:

gpedit.msc

2. Navigate to Computer Configuration -> Windows Settings -> Security Settings -> Account Policies -> Password Policy.

3. Set the Maximum password age parameter to 0 (the default is 42 days).

This action disables the requirement for regular password changes for all users.

Command to Disable Password Expiration via Command Prompt

You can also disable password expiration using the Command Prompt with the following command:

net accounts /maxpwage:unlimited

To check the current password expiration settings:

net accounts /maxpwage

Hiding the “Change Password” Button on the Windows Security Screen

If the computer is configured for automatic login or used in kiosk mode, you can hide the “Change Password” button on the security screen (Ctrl+Alt+Del):

1. Open the Group Policy Editor by running:

gpedit.msc

2. Navigate to User Configuration -> Administrative Templates -> System -> Ctrl+Alt+Del Options.

3. Enable the Remove Change Password option.

Disabling the Password Change Dialog via Registry

To completely disable the password change dialog, you can modify the Windows Registry:

reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System" /v DisableChangePassword /t REG_DWORD /d 1 /f

After this, users will not be able to change their passwords through the password change dialog in Windows.

Now you know how to prevent password changes in Windows for individual users or the entire system. Choose the method that best suits your situation.

banner for Windows
Windows от license from
$13.30 ·
Picking your discount
Promo code ·
Promo code expired. A new one in .
Buy valid for

"Personal discount from 5% to 12%" — promotion rules

  1. Organizer — SoftComputers LLP, website softcomputers.net. The promotion runs indefinitely; the organizer may end it at any time by removing the block from the website.
  2. Participation is free. To take part, enter your email and agree to the processing of personal data and to receive emails.
  3. Each participant receives a promo code for a 5% to 12% discount on any product in the catalog. The amount is chosen at random.
  4. The promo code is single-use, tied to the email you entered, valid for 7 days and applied in the cart at checkout. No minimum order amount. Cannot be combined with other promo codes.
  5. One participant (email / device) can receive one promo code per 7 days; a new code is issued after the previous one expires.
  6. The promo code cannot be exchanged for money. The organizer may void a code in case of abuse.
Subscribe
Notify of
guest
0 comments
Newest
Oldest