sodcalculator

10 Tech How-To

Fix Windows Password Change Error: User Not Found

Guide 10-41924 · Updated · Step by step

If you see a “Windows cannot change the password for user” error, it usually means the account name you typed doesn’t match any local user on this PC, or the account is a Microsoft account that must be changed online. The fix is to verify the exact username with whoami or check the account type, then either use the correct local name or change the Microsoft password through the official sign-in page.

What Causes the “Cannot Change Password for User” Error?

This error appears in several Windows tools—most often in the classic User Accounts dialog (Win+R, type netplwiz), in Computer Management under Local Users and Groups, or when using the net user command. The message itself is generic: Windows cannot find the user you specified, or it cannot apply the change because of a permission or policy issue.

Common triggers include:

  • Typing the wrong username—Windows local usernames are case-insensitive but must match exactly in spelling. If you type “Admin” when the account is “Administrator”, you get this error.
  • Using a Microsoft account—If you signed in with an email address, the local password isn’t managed by the PC; it’s managed online. The local account name is often the first five letters of your email (e.g., “johndoe”), but the password change must go through Microsoft’s website.
  • Missing administrator rights—Changing another user’s password requires admin privileges. If you’re a standard user, Windows blocks the change.
  • Group Policy restrictions—Some organizations disable password changes for specific users, or require a minimum password length that your new password doesn’t meet.

How to Find the Exact Local Username

Before you try to change the password, confirm the account name that Windows actually uses. The name shown on the lock screen is often a display name, not the username.

  1. Open Command Prompt (Win+R, type cmd, press Enter).
  2. Type whoami and press Enter. It shows computername\username for the current user.
  3. To see all local users, type net user and press Enter. This lists every local account.
  4. If you see the account but it’s a Microsoft account, the list shows the local alias (like “JOHNDOE”)—but the password is still tied to the Microsoft account.

If you’re trying to change a different user’s password, you need to know that user’s exact local name. You can find it in Computer Management > Local Users and Groups > Users. The “Full name” column is just a label; the “Name” column is what Windows uses.

Step-by-Step Fixes for the Error

Try these in order—most users only need the first one.

1. Use the Correct Username in netplwiz

  1. Press Win+R, type netplwiz, and press Enter.
  2. Check the box “Users must enter a user name and password to use this computer” if it’s unchecked (this is often the source of the error).
  3. Select the account you want to change and click Reset Password.
  4. Enter the new password twice, then OK.

If you get the error here, the account you selected might be a Microsoft account. Look at the “Users” list—if the account shows an email address under “Full name”, it’s a Microsoft account. You cannot reset its password locally.

2. Change a Microsoft Account Password Online

  1. Go to account.microsoft.com and sign in with the email and current password.
  2. Select Security > Password.
  3. Follow the verification steps (email, phone, or authenticator app).
  4. Set the new password. This updates across all your devices.

After changing it online, your PC will accept the new password on the next sign-in. You might need to restart or lock/unlock to refresh the cached credentials.

3. Use the Command Line (for Local Accounts)

If you have admin rights and the account is local, open Command Prompt as Administrator and run:

net user username newpassword

Replace username with the exact local name and newpassword with your chosen password. If you get “Access denied”, you’re not running as admin. If you get “The user name could not be found”, the account is either a Microsoft account or you mistyped the name.

4. Check Group Policy (Pro/Enterprise)

If you’re on Windows 11 Pro/Enterprise or Windows 10 Pro/Enterprise, a policy might block password changes. Run gpedit.msc and navigate to Computer Configuration > Windows Settings > Security Settings > Account Policies > Password Policy. Look at “Minimum password length” and “Password must meet complexity requirements”. If your new password doesn’t meet these, Windows rejects it with a generic error. Adjust the policy or choose a stronger password.

Common Misconceptions About This Error

Misconception: “The error means my account is locked or corrupted.” Not usually. The message is almost always a name mismatch or a Microsoft account issue. If the account were locked, you’d see a different message about lockout.

Misconception: “I can change a Microsoft account password from the PC.” No. Even if you use the local “netplwiz” dialog, Windows only changes the local cache. The next time the PC syncs with Microsoft, the old password returns. You must change it online.

Misconception: “The username is the same as my display name.” Not necessarily. The display name (e.g., “John Smith”) is just a label. The actual username is the one shown in net user or Computer Management.

When the Error Persists After All Fixes

If you’ve verified the username, confirmed it’s a local account, and you have admin rights, but still get the error, try these advanced steps:

  • Run Windows Update—occasionally a bug in the user profile service is fixed by an update.
  • Create a new local account—if the profile is corrupted, create a new user via Settings > Accounts > Other users, then migrate your files.
  • Use Safe Mode—boot into Safe Mode and try the password change there. Some third-party security software can interfere.
  • Check if the account is disabled—run net user username and look for “Account active”. If it says “No”, enable it with net user username /active:yes.

Preventing the Error in the Future

  • Keep a note of your exact local username (not just the display name).
  • If you use a Microsoft account, remember that password changes happen online—bookmark the security page.
  • When creating new accounts, choose a local account if you don’t need Microsoft sync; it’s easier to manage passwords locally.
  • Use a password manager to avoid typos when entering long passwords.

Frequently Asked Questions

Why does it say “user not found” when I can see the account in Settings?

Settings shows the display name, not the login username. For example, your Microsoft account might display “John Doe” but the local username is “JOHNDOE” (first five letters of the email). The error occurs because you typed the display name instead of the actual username.

Can I change a Microsoft account password from the command prompt?

No. The net user command only works for local accounts. For a Microsoft account, you must go to account.microsoft.com and change it there. Trying to change it locally will either fail or only change the cached version temporarily.

What if I forgot the password and can’t get into Windows at all?

You’ll need to use password reset options: a password reset disk (if you made one), the security questions on the lock screen, or another admin account. For Microsoft accounts, you can reset online from another device. If all else fails, you may need to reinstall Windows, but that’s a last resort.

Does this error appear on Windows 10 and 11 the same way?

Yes, the error message and causes are essentially the same on both. The tools (netplwiz, Computer Management, net user) are identical. The only difference is the Settings layout, but the underlying mechanics are the same.

Why does the error say “Access denied” instead of “user not found”?

“Access denied” means you don’t have administrator privileges. The “user not found” error is specifically about the username not matching. If you see “Access denied”, run the tool as administrator (right-click > Run as administrator) or log in with an admin account.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →