---
title: 'Windows 10: resetting a forgotten local password'
url: 'https://niklas-stephan.de/en/wiki/guides/windows-10-passwort-vergessen'
markdown: 'https://niklas-stephan.de/en/wiki/guides/windows-10-passwort-vergessen.md'
lang: en
date: '2022-01-06'
description: 'Windows 10: resetting a forgotten local password Verified: January 2022 on Windows 10 (then-current version), local account. Prerequisite is physical access plus a Windows 10 installation stick. For accounts linked to a Microsoft cloud account, resetting online from another device is the correct pa…'
---

#  Windows 10: resetting a forgotten local password 

*Verified: January 2022 on Windows 10 (then-current version), local account. Prerequisite is physical access plus a Windows 10 installation stick. For accounts linked to a Microsoft cloud account, resetting online from another device is the correct path instead.*

This tutorial resets the password of a **local** Windows 10 account by replacing the accessibility tool (`utilman.exe`) with the command line (`cmd.exe`) from the installation medium, changing the password offline, and restoring the original file afterwards. The same mechanism is a physical-access attack vector — the hardening section at the end covers how to close it.

## Preparation

- A second machine with internet access, to create a Windows 10 installation medium (USB stick) from the official ISO (sources below).

    ![Official Windows 10 ISO download](https://niklas-stephan.de/user/pages/wiki/01.guides/windows-10-passwort-vergessen/02-win10down.webp)
- The affected PC, booted from that stick.

## Procedure

1. Boot the PC from the installation stick.

    ![Boot from stick](https://niklas-stephan.de/user/pages/wiki/01.guides/windows-10-passwort-vergessen/03-01-boot-img.webp)
2. In the first dialog (language selection), press **SHIFT + F10** to open a command line.

    ![SHIFT + F10](https://niklas-stephan.de/user/pages/wiki/01.guides/windows-10-passwort-vergessen/04-02-boot-shift.webp)
3. Switch to the partition of the installed Windows, e.g. with `C:`, then into its system directory: `cd Windows`, `cd system32`.
4. Back up the accessibility assistant: `cp utilman.exe utilman_old.exe`.
5. Replace it with the command line: `copy cmd.exe utilman.exe`.

    ![Replace utilman](https://niklas-stephan.de/user/pages/wiki/01.guides/windows-10-passwort-vergessen/05-07-down.webp)
6. Close the installation routine and boot Windows normally. Force a restart into the recovery environment from the login screen: hold **SHIFT**, click the power symbol (bottom right), select Restart.

    ![SHIFT + Restart at the login screen](https://niklas-stephan.de/user/pages/wiki/01.guides/windows-10-passwort-vergessen/06-08-troubleshoot.webp)
7. In the recovery menu choose **Troubleshoot → Advanced Options → Startup Settings → Restart**, then press **6** (safe mode with command prompt).

    ![Advanced options](https://niklas-stephan.de/user/pages/wiki/01.guides/windows-10-passwort-vergessen/07-09-advanced.webp)

    ![Startup settings](https://niklas-stephan.de/user/pages/wiki/01.guides/windows-10-passwort-vergessen/08-10-startup.webp)

    ![Start option 6](https://niklas-stephan.de/user/pages/wiki/01.guides/windows-10-passwort-vergessen/09-11-startup-settings.webp)
8. The own password is unknown, but the replaced accessibility tool now works: on the login screen click the accessibility icon (second icon, bottom right) — a command line opens with system privileges.

    ![Command line via accessibility icon](https://niklas-stephan.de/user/pages/wiki/01.guides/windows-10-passwort-vergessen/10-12-netuser.webp)
9. `net user` lists the local accounts. If the target account is not listed, reactivate the built-in Administrator instead and set a password for it:

    ```dos
    <span class="hljs-built_in">net</span> user Administrator /active:yes
    <span class="hljs-built_in">net</span> user Administrator NEWPASSWORD
    ```

    (With adjusted commands this also creates a brand-new admin user.)

    ![net user commands](https://niklas-stephan.de/user/pages/wiki/01.guides/windows-10-passwort-vergessen/11-13-cmd.webp)
10. Reboot and log in as the Administrator with the set password, then change the actual user's password via Control Panel → Users → Other accounts. Reboot again and log in as the actual user.

## Cleaning up

Undo the tracks so the door is closed again:

- `net user administrator /active:no`
- From an elevated command line: `C:`, `cd Windows`, `cd system32`, `del utilman.exe`, `copy utilman_old.exe utilman.exe`

## Security assessment

The procedure works on any Windows 10 machine with physical access — command-line access during setup and unsigned pre-login system binaries are the enabling chain. Preventing it requires both:

- **BIOS/UEFI password** – stops booting from foreign media.
- **Disk encryption (BitLocker)** – otherwise the drive can simply be read in another machine.

A Microsoft online account alone does not prevent it; a new local admin can still be created by anyone with the hardware. Upstream fixes would mean blocking the command line in the setup routine and verifying signatures of pre-login system binaries (analogous to SELinux on Linux).

## Sources

- <https://adamtheautomator.com/reset-windows-10-password-command-prompt/> – did not work, useful background
- <https://www.avast.com/c-recover-windows-password#gref> – did not work, useful background
- <https://www.makeuseof.com/tag/3-ways-to-reset-the-forgotten-windows-administrator-password/> – did not work, useful background
- <https://www.sony.com/electronics/support/articles/00123047> – activating a disabled Windows account from the command line
- <https://www.microsoft.com/en-us/software-download/windows10ISO> – Windows 10 ISO download

 guidewindowssecurity

---

## Navigation

- Parent: [Guides](https://niklas-stephan.de/en/wiki/guides.md)
- Previous: [Trackpad](https://niklas-stephan.de/en/wiki/guides/trackpad.md)
