The Categorizer

the categorizer logo

How To Prevent Users From Changing Password in Windows 11


Windows allows the users to prevent the password from changing unless you’re not on a corporate network where your computer is managed by a system administrator in an organization.

It seems that you want to prevent users from changing password in Windows or you want to fix the error stating the warning “Windows cannot change the password”.

The methods listed below are applicable to both the guest users and local users on the same machine, but you cannot prevent changing the administrator password as it can result in the Admin account being disabled, deleted, or may cause login issues, especially when you’re connected with your primary Microsoft Account.

By the end of this article, you’ll be able to prevent users from changing password in Windows 11:


Step 1: In the Start menu, type “Computer Management” and hit the enter key,

computer management app icon
Computer Management App Icon

Step 2: Expand the “Local Users and Groups” section on the left sidebar, click the “Users” option and Double-click the account for which you want to remove the password.

expand local users and groups option and select users option
Local Users and Groups

Step 3: Check the “User cannot change password” option and click the “Apply” button.

check the "user cannot change password" and press the "apply" button
“User cannot change password” option

Note: To enable users from changing password, uncheck the “User can not change password” option and click the “Apply” button.


Step 1: Open the Registry Editor from the Start menu.

registry editor icon in windows 11
Registry Editor Icon

Step 2: Navigate to the following path:
Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies.

Step 3: Right-click the Policies folder and create a new key named System (if doesn’t exist already).

make new key named "system" in registry editor
Key Name = System

Step 4: Select the system key, right-click and add a new DWORD (32-bit) value named DisableChangePassword.

make a DWORD 32 bit value named "disablechangepassword"
Value Name = “DisableChangePassword”

Step 5: To prevent users from changing password, open the recently created DWORD value and set the value data from 0 to 1.

change the value data of disablechangepassword key from 0 to 1
Value Data = 1

Note: To enable changing password using registry settings, simply set the value data in the “DisableChangeValue” DWORD value to 1.


Step 1: Run the Command Prompt from the Start menu as an administrator.

command prompt icon in windows 11
Command Prompt (CMD) Icon

Step 2: List all users with usernames by executing the command:
net user.

command to list all users in windows using command prompt
Command To List All Users

Step 3: To prevent the user from changing the password, type the command:
net user “Account-Name” /passwordchg:no.

prevent changing password using command prompt
Prevent Changing Password

Note: To revert the settings and allow users to change the password again, type the following command:
net user “Account-Name” /passwordchg:yes.


Step 1: Run the PowerShell from the Start menu as an administrator.

powershell app icon in windows 11
PowerShell App Icon

Step 2: To list all users on the computer, type the command:
net user.

command to list all users in windows using PowerShell
Command To List All Users

Step 3: To prevent the user from changing the password, type the following command:
Set-LocalUser -Name “username-here” -UserMayChangePassword 0.

command to prevent changing password in windows using PowerShell
Command to Prevent Changing Password

Note: To allow changing password again, type the following command:
Set-LocalUser -Name “username-here” – UserMayChangePassword 1.


Step 1: In the Start menu, type “Edit Group Policy” and hit the enter key.

local group policy app icon in windows 11
Group Policy App

Step 2: Navigate to the following path:
User Configuration > Administrative Templates > System > Ctrl + Alt + Del Options and double-click the “Remove Change Password” on the right pane.

Step 3: Set the status to “Enabled” and click the “Apply” button.

set the status to enabled to prevent changing password using group policy editor
Status = Disabled

Note: To again allow changing password using group policy, double-click the “Remove Change Password” option and set the status to “Disabled” and click the “Apply” button.


Next Steps

We’ve covered how to prevent other users from changing password in Windows 11. You can choose any of the methods that you find convenient to follow.

Further, configure the computer’s settings to customize it depending on your preferences.


Related Articles

how to use credential manager in windows

Credential Manager in Windwows

Manage all your accounts, passwords and authentication on your PC in a single location

how to prevent users from changing background in windows 11

Prevent Changing Wallpaper in Windows

Enhance your privacy by preventing all users from changing wallpaper in Windows.

how to allow or block store in windows 11

Prevent User from installing Apps in Windows

Increase your computer’s security by not letting others install programs without your permission.

Take a Minute to Share This Article.
How To Use Clipboard History in Windows 11