Skip to content
Tarisu Limited

Reset a Forgotten Windows 10 or 11 Local Account Password

Locked out of a local account on Windows 10 or 11? This step-by-step guide covers safe recovery options for your own computer, including password reset disks, another administrator account, Safe Mode, and Windows installation media. Back up your data first.

Guides 9 min read Support Team

Reset a Forgotten Windows 10 or 11 Local Account Password

Who this guide is for

This guide is for anyone who has forgotten the password to a local user account on a Windows 10 or Windows 11 computer and needs to regain access. It assumes you are the owner of the machine or have been asked to help the owner. It does not cover Microsoft accounts, domain accounts managed by an organization, or computers you do not own.

Prerequisites

Before you try any recovery method, make sure you have the following.

  • A computer running Windows 10 or Windows 11 with a local account, not a Microsoft account.
  • A separate working computer and a USB flash drive with at least 8 GB of space, if you need to create installation media.
  • A password reset disk, if you created one previously.
  • Another local administrator account on the same computer, if one exists.
  • A backup of important files. Modifying system files or resetting a password can cause data loss in edge cases, especially if files are encrypted with Windows EFS.

Start with the simplest options

Check the password hint

On the Windows sign-in screen, enter an incorrect password. Windows may show a password hint below the field. If you set one when creating the account, it might jog your memory.

Use a password reset disk

A password reset disk is a USB flash drive prepared in advance through the Windows User Accounts tool. It only works for local accounts and must be created before you forget the password.

  1. At the sign-in screen, enter the wrong password and press Enter.
  2. When the error appears, select the Reset password link that appears below the password field.
  3. The Password Reset Wizard opens. Insert the reset disk and follow the prompts to create a new password.
  4. Sign in with the new password.

If you do not see the Reset password link, you did not create a reset disk, or you are using a Microsoft account. Move to the next method.

Sign in with another administrator account

If your computer has more than one local administrator account, sign in with that account and change the locked account's password.

  1. Sign in to Windows with the other administrator account.
  2. Right-click the Start button and select Terminal (Admin) or Command Prompt (Admin).
  3. To see the exact account name, run:
net user
  1. Reset the password with:
net user USERNAME NEWPASSWORD

Replace USERNAME with the locked account name and NEWPASSWORD with a strong new password. If the account name contains spaces, enclose it in quotation marks.

You should see The command completed successfully.. Sign out and sign in to the locked account with the new password.

Method 1: Safe Mode with the built-in Administrator account

Windows includes a hidden built-in Administrator account. On many consumer PCs it is disabled, but if it is enabled and has no password or a password you know, you can use it in Safe Mode.

  1. On the sign-in screen, hold down the Shift key, click the Power button, and select Restart.
  2. After the computer restarts, choose Troubleshoot > Advanced options > Startup Settings > Restart.
  3. When the Startup Settings menu appears, press 4 or F4 for Safe Mode, or 6 or F6 for Safe Mode with Command Prompt.
  4. If the built-in Administrator account appears on the sign-in screen, select it and sign in.
  5. Open Command Prompt as administrator.
  6. Run:
net user USERNAME NEWPASSWORD
  1. Restart the computer normally and sign in to the locked account with the new password.

If the built-in Administrator account is disabled or does not appear, this method will not work. Proceed to Method 2.

Method 2: Windows installation media and the recovery command prompt

This is the most reliable method when no reset disk and no other administrator account exist. It uses the Windows installation USB to open a command prompt in the recovery environment, temporarily replaces an accessibility tool with Command Prompt, resets the password, and then restores the original tool.

Only use this on a computer you own. Keep a backup of important data before starting.

Step 1: Create installation media

  1. On a different computer, download the official Windows 10 or Windows 11 installation media creation tool from Microsoft.
  2. Run the tool and choose Create installation media for another PC.
  3. Select the edition, language, and architecture that match the locked computer.
  4. Choose USB flash drive and finish the wizard. The USB drive will be erased.

Step 2: Boot the locked computer from the USB drive

  1. Insert the USB drive into the locked computer.
  2. Restart the computer and press the boot menu key for your manufacturer, commonly F12, F10, Esc, or F8, to choose the USB drive.
  3. If the computer boots straight into Windows, restart and enter the firmware or UEFI setup, often Del or F2, to change the boot order or temporarily disable Secure Boot.

Step 3: Open a command prompt in setup

  1. On the Windows Setup screen that asks for language, time, and keyboard, do not click Install now.
  2. Press Shift + F10. A Command Prompt window opens.

Step 4: Find the drive letter for Windows

The recovery environment does not always call the system drive C:. Use Diskpart to identify it.

  1. Run:
echo list volume | diskpart
  1. Look for the volume that contains the Windows folder. It is often the largest NTFS volume and may be assigned a letter such as D: or C:.
  2. Exit Diskpart by typing:
exit

Step 5: Replace Utilman.exe with Command Prompt

Utilman.exe is the Utility Manager accessibility tool. Windows runs it with system privileges at the sign-in screen. Replacing it temporarily with cmd.exe lets you open a command prompt without signing in.

Assume the Windows drive is D:. Replace D: with the letter you found in Step 4.

  1. Take ownership of the file:
takeown /f D:\windows\system32\utilman.exe
  1. Grant administrators full control:
icacls D:\windows\system32\utilman.exe /grant administrators:F
  1. Back up the original file:
copy D:\windows\system32\utilman.exe D:\windows\system32\utilman.exe.bak
  1. Copy Command Prompt over Utilman:
copy D:\windows\system32\cmd.exe D:\windows\system32\utilman.exe
  1. Close the command prompt, remove the USB drive, and restart the computer.

Step 6: Reset the password from the sign-in screen

  1. When the Windows sign-in screen appears, look for the accessibility icon in the lower-right corner. On some keyboards you can also press the Shift key five times if you replaced sethc.exe instead.
  2. Click the Utility Manager icon. A Command Prompt window opens with system privileges.
  3. List local accounts to confirm the exact name:
net user
  1. Reset the password:
net user USERNAME NEWPASSWORD

Replace USERNAME with the account name and NEWPASSWORD with a strong password.

  1. Close the command prompt and sign in with the new password.

Step 7: Restore the original Utilman.exe

Leaving cmd.exe in place of Utilman.exe is a security risk because anyone at the sign-in screen could open a system command prompt. Restore the original file as soon as you can sign in.

  1. Boot again from the installation USB and press Shift + F10.
  2. Find the Windows drive letter again if needed.
  3. Take ownership and grant permissions:
takeown /f D:\windows\system32\utilman.exe
icacls D:\windows\system32\utilman.exe /grant administrators:F
  1. Restore the backup:
copy D:\windows\system32\utilman.exe.bak D:\windows\system32\utilman.exe
  1. Restart the computer normally and remove the USB drive.

What you should see after the reset

When the password reset command works, Windows prints The command completed successfully.. You should then be able to sign in to the local account with the new password. Personal files, installed programs, and settings remain in place because resetting a password does not delete the user profile.

If you use Encrypting File System (EFS) to encrypt folders or files, resetting the password outside of Windows may make those encrypted files inaccessible. This is another reason to keep backups before you begin.

Troubleshooting common errors

Access is denied when copying files

This usually means ownership or permissions were not changed correctly. Repeat the takeown and icacls commands exactly, using the correct drive letter. The recovery environment command prompt runs with administrative privileges, so you should not need to right-click and run as administrator.

The system cannot find the path specified

Check that you used the correct drive letter. In the recovery environment, the Windows partition is often not C:. Run echo list volume | diskpart again and look for the volume that contains the Windows folder.

BitLocker blocks access to the drive

If BitLocker drive encryption is enabled, the recovery environment will ask for a BitLocker recovery key before you can read the system drive. Keep your recovery key saved to your Microsoft account, a printed copy, or a USB drive. Without the key, you cannot modify system files this way.

Secure Boot prevents booting from USB

Some computers refuse to boot unsigned installation media when Secure Boot is enabled. Enter the UEFI firmware settings and disable Secure Boot temporarily. You can enable it again after you finish.

The Utility Manager icon does not open Command Prompt

If clicking the accessibility icon does nothing, try replacing sethc.exe instead of utilman.exe. At the sign-in screen, press the Shift key five times quickly to launch Sticky Keys, which will open Command Prompt if the replacement was successful. Remember to restore sethc.exe.bak afterward using the same steps.

The account name is not recognized

Run net user in the command prompt to see all local account names. Use the exact spelling, including capitalization and spaces. If the name contains spaces, surround it with quotation marks in the command.

Security notes

  • Only reset passwords on computers you own or administer. Accessing someone else's account without permission is unlawful.
  • Always restore utilman.exe or sethc.exe after you finish. Leaving a command prompt accessible from the sign-in screen removes a key protection.
  • Choose a strong, unique password for the local account. Avoid reusing passwords from other services.
  • Create a password reset disk after you regain access, so you have a safer recovery path next time.
  • If the computer is a Windows VPS or dedicated server, use the hosting provider's out-of-band console, such as VNC or IPMI, to reach the sign-in screen and recovery environment if remote desktop is unavailable. Tarisu customers can contact Tarisu support for help accessing the console on a VPS or dedicated server.

Frequently asked questions

Does this work for Microsoft accounts?

No. Microsoft accounts are recovered online at account.microsoft.com. This guide is for local accounts only.

Will I lose my files?

Resetting a local account password does not delete files or programs. However, if you modify system files or if the drive uses encryption, there is a small risk of data loss. Back up important data first.

What if my computer uses BitLocker?

You need the BitLocker recovery key to access the system drive from the recovery environment. Without it, this method will not work.

Can I avoid forgetting my password again?

Yes. Create a password reset disk, add another local administrator account, use a password manager, or switch to a Microsoft account if online recovery fits your needs.

Is this guide suitable for Windows 11 Home?

Yes. These steps work on Windows 10 and 11 Home, Pro, and other editions. The Local Users and Groups tool, lusrmgr.msc, is not available on Home editions, but the net user command works on all editions.

Can I use this on a server?

Yes, the same principles apply to Windows Server 2019 and 2022, but if the server is hosted remotely, use the provider's rescue or VNC console rather than trying to attach a USB drive. Contact your hosting provider if you cannot reach the console.

Related posts

We use strictly necessary cookies to keep you signed in and remember your preferences. We would also like to measure how the site is used, but only with your agreement. Read our privacy policy