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

  • The affected PC, booted from that stick.

Procedure

  1. Boot the PC from the installation stick.

    Boot from stick

  2. In the first dialog (language selection), press SHIFT + F10 to open a command line.

    SHIFT + F10

  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

  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

  7. In the recovery menu choose Troubleshoot → Advanced Options → Startup Settings → Restart, then press 6 (safe mode with command prompt).

    Advanced options

    Startup settings

    Start option 6

  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

  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:

    net user Administrator /active:yes
    net user Administrator NEWPASSWORD

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

    net user commands

  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