How to Allow or Prevent Users from Changing Their Password in Windows 10 & 11

How to allow or prevent users from changing their password in Windows blog banner image

This tutorial discusses how to allow or prevent users from changing their password in Windows 10 and Windows 11, providing step-by-step instructions for restricting password change permissions for local users. Included are explanations for using the Local Users and Groups tool and PowerShell/Command Prompt for managing password settings, allowing you to configure whether or not users can change their own passwords.

Managing user account passwords is a common administrative task for Windows 10 and Windows 11 devices. Preventing specific users from changing passwords is often necessary for users who have poor password habits or do not remember passwords, enabling administrators to manually manage users’ passwords themselves for greater oversight.

Prerequisites for managing password permissions and settings

You will need to be logged in as a user with administrative privileges to manage Windows system settings. You should also take a full backup of your important files and system before making any major configuration changes to your device.

Step-by-step instructions: Allow or prevent users from changing their password in Windows 10 and Windows 11

There are several methods that can be used to manage user password permissions on Windows 10 and Windows 11 devices. Note, however, that all the methods below are for local Windows user accounts. If you are an administrator for a Windows Domain, you will need to use Azure AD or Active Directory to manage your users.

Note also that, as an administrator, it is not possible to restrict your own user account from changing your password. An error will occur if you attempt this to prevent you from creating a situation where you cannot log in with an administrator account.

Restricting or allowing password changes using the Local Users and Groups MMC (GUI)

In Windows 10 and Windows 11, the Local Users and Groups snap-in provides a graphical interface for managing users. This tool is only available in Pro, Enterprise, and Education editions of the Windows operating system — users of Home versions will need to use the command line method.

To prevent or allow users to change their own passwords using Local Users and Groups, follow these steps:

  • Right-click on the Start button and click Run
  • Enter lusrmgr.msc into the Run dialog and press OK
  • Click Users in the left-panel navigation tree
  • Right-click the user you wish to restrict or enable password changes for and select Properties

Local users and groups

  • Check the User cannot change password checkbox to prevent the user from changing their own password
  • Uncheck the User cannot change password checkbox to do the opposite and allow them to change their own password
  • Click OK to dismiss the user Properties window and confirm the change

Properties dialog box

Preventing or enabling user password changes using the Command Prompt

You can alternatively use the command prompt to allow or deny users to manage their own passwords in Windows 10 and Windows 11 by following these steps:

  • Open an elevated PowerShell or Command Prompt window
  • Run the command net user USERNAME /passwordchg:no to prevent the user with the user USERNAME from updating their own password
  • Run the command net user USERNAME /passwordchg:yes to allow the user with the user USERNAME to update their own password

These commands use the Windows net user command to update the local user’s password settings. Note you will need to change USERNAME to the username of the user whose password change settings you wish to update.

Confirming whether a user is restricted from changing their own password

The net user command can also be used to confirm whether a user has permission to change their own password by running net user USERNAME (again replacing USERNAME with the specified user account).

In the information displayed by this command, you can confirm the current user’s ability to change their password by looking for the User may change password entry.

Use cases for restricting user password changes

Restricting users from changing their passwords is often done on shared machines to prevent one user from changing the password to something the others don’t know (either intentionally or unintentionally).

Preventing password changes is also useful for accounts used by children, and in environments where users are irresponsible with their password practices. In the latter case, some administrators prefer to create secure passwords themselves and supply them to their users, or manually vet passwords to check if they are appropriate before updating them.

In some cases, it is necessary instead to force users to regularly change their passwords for compliance reasons. In cases where users fail to do so (and when attempts to force users to change their password on next login fail), it may be necessary to take control of their password management to ensure that all accounts on the network are secure.

Managing user password permissions for multiple Windows 10 and Windows 11 PCs

Managing the security of multiple Windows 10 and Windows 11 devices quickly becomes cumbersome as the number of PCs you need to configure, monitor, and keep up-to-date increases.

Centralizing and automating common administrative tasks such as managing user password permissions to allow or prevent users from changing their passwords can be done using mobile device management (MDM) tools. NinjaOne provides a feature-rich MDM solution that covers all of your business devices, as well as employees’ own devices that are used for remote work.

In addition to enforcing security policies, NinjaOne lets you automate other common administrative tasks and enforce security policies across Windows 10, Windows 11, Apple, Android, and Linux devices for full coverage of your IT infrastructure.

Next Steps

Building an efficient and effective IT team requires a centralized solution that acts as your core service deliver tool. NinjaOne enables IT teams to monitor, manage, secure, and support all their devices, wherever they are, without the need for complex on-premises infrastructure.

Learn more about Ninja Endpoint Management, check out a live tour, or start your free trial of the NinjaOne platform.

You might also like

Ready to simplify the hardest parts of IT?
×

See NinjaOne in action!

By submitting this form, I accept NinjaOne's privacy policy.

NinjaOne Terms & Conditions

By clicking the “I Accept” button below, you indicate your acceptance of the following legal terms as well as our Terms of Use:

  • Ownership Rights: NinjaOne owns and will continue to own all right, title, and interest in and to the script (including the copyright). NinjaOne is giving you a limited license to use the script in accordance with these legal terms.
  • Use Limitation: You may only use the script for your legitimate personal or internal business purposes, and you may not share the script with another party.
  • Republication Prohibition: Under no circumstances are you permitted to re-publish the script in any script library belonging to or under the control of any other software provider.
  • Warranty Disclaimer: The script is provided “as is” and “as available”, without warranty of any kind. NinjaOne makes no promise or guarantee that the script will be free from defects or that it will meet your specific needs or expectations.
  • Assumption of Risk: Your use of the script is at your own risk. You acknowledge that there are certain inherent risks in using the script, and you understand and assume each of those risks.
  • Waiver and Release: You will not hold NinjaOne responsible for any adverse or unintended consequences resulting from your use of the script, and you waive any legal or equitable rights or remedies you may have against NinjaOne relating to your use of the script.
  • EULA: If you are a NinjaOne customer, your use of the script is subject to the End User License Agreement applicable to you (EULA).