Windows OS Hub
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux

 Windows OS Hub / Windows 11 / How to Reset the Administrator Password in Windows

July 20, 2026

How to Reset the Administrator Password in Windows

It may happen that you forget your Windows login password and cannot sign in to your computer. In this article, we will show you how to reset the local administrator account password using built‑in Windows tools, without relying on any third‑party utilities. This password reset guide applies to all supported Windows operating systems, including Windows 11, Windows 10, and Windows Server 2025, 2022, 2019, and 2016.

Contents:
  • Boot Computer into Recovery Mode (WinRE) or from Windows Installation Media
  • How to Open Command Prompt as System at Login Screen
  • Reset the Windows Administrator Password from Command Prompt
  • Create a New Local User When Only a Microsoft Account Exists in Windows

You can use this password reset method in Windows if:

  • You have physical access to the console of the computer or virtual machine on which you want to reset the administrator password. This includes options for remote access to the server or computer console via IP-KVM, IPMI, HP iLO, Dell iDRAC, Intel vPro, and so on.
  • The computer’s system drive must not be encrypted with BitLocker or other disk encryption tools (in Windows 11, drive partitions are automatically encrypted with BitLocker on compatible hardware). If your drive is encrypted with BitLocker and you have a recovery key, this post will show you how to decrypt the system drive before resetting the password.
  • A local Windows account is used on the computer instead of a cloud‑based Microsoft account (MSA) (How to install Windows 11 with a local account). When an MSA is used, you can reset its password using the standard recovery tools on Microsoft’s website, including the password reset option accessible directly from the Windows sign-in screen.

Boot Computer into Recovery Mode (WinRE) or from Windows Installation Media

In order to reset the local administrator password, the computer must be booted from any bootable media. The easiest way is to restart your computer in the Windows Recovery Environment (WinRE) from the built-in recovery disk partition.

To reboot into the Windows Recovery Environment, hold down the Shift key at the login screen (or in the Start menu) and click the Restart button.

Press Shift with Restart on the sign in screen to boot into winre

After restarting the computer in recovery mode, open the Command Prompt (go to Troubleshoot -> Advanced Options -> Command Prompt).

Open the command promt in windows recovery environment

If you cannot boot your computer into the Windows Recovery Environment, you can reset the local administrator password using a bootable USB flash drive with any Windows installation image (any supported Windows version). The easiest way is to create a bootable Windows USB flash drive using the official Media Creation Tool, use the Rufus tool to write a Windows ISO image to a USB flash drive, or copy the Windows ISO image to a Ventoy multi-boot USB stick.

  1. After preparing the bootable USB drive, restart your computer and enter the BIOS/UEFI setup as it powers on (press F1 , F2 or Del depending on the hardware). Set your USB flash drive as the primary boot device. Find the Boot Order/Boot Device Priority menu item (menu item names depend on the manufacturer and BIOS/UEFI firmware version). Then set your removable USB flash drive as the primary boot source.Boot computer from Removable USB flash
  2. When the computer starts, the message ‘Press any key to boot from CD/DVD/USB‘ should appear.
  3. The Windows Setup Wizard will start automatically. Use the key combination Shift+F10 (or Shift + Fn + F10 on laptops) to open the command prompt.

  1. After opening the command prompt, find out the drive letter assigned to the partition where Windows is installed. Run the command
    wmic logicaldisk get volumename,name
    If local disks are not displayed in the WinPE environment, you most likely need to load drivers for the disk controller. In the WinPE environment, drivers can be loaded using the drvload command.  See an example of how to manually load the NVMe driver during Windows installation.
    Shift+F10 - run command prompt on Windows Setup screen
  2. As you can see in my example, Windows is on the C: This is the drive letter we will use in the following commands.
    If your system partition is encrypted with BitLocker and you have the password to decrypt it, you must first unlock the BitLocker-encrypted drive with the command: manage-bde -unlock C: -pw. The administrator password can only be reset after this.
  3. You can also identify partitions and their assigned drive letters in the WinPE environment using the diskpart command. For that, run the following commands one after the other: diskpart -> list disk (to display a list of hard disks available) -> list vol (list partitions and their assigned drive letters). In this example, there is only one Disk 0 with a GPT partition table and three partitions: the EFI system partition (with the FAT32 file system, which contains the Windows EFI bootloader), the recovery partition (with the WinRE recovery environment), and the primary partition with the NTFS file system and a size of 39GB (with the C drive letter assigned). get windows volume drive letter

How to Open Command Prompt as System at Login Screen

At this step, you need to perform a small trick by replacing a system file, which allows you to open a privileged command prompt directly from the Windows login screen without authentication.

  1. Run the following command to back up the original utilman.exe file:
    copy C:\windows\system32\utilman.exe C:\windows\system32\utilman.exebak
  2. Then replace the utilman.exe file with the cmd.exe file:
    copy c:\windows\system32\cmd.exe c:\windows\system32\utilman.exe /y
    replace utilman.exe with cmd.exe
  3. If you used a bootable USB flash drive or other media containing the Windows installation image, remove it and restart your computer:
    wpeutil reboot
  4. Boot normally into Windows, which is installed on your computer.
  5. On the login screen, click the Accessibility (Ease of Access) icon in the lower-right corner (in Windows 11, this is represented by a small person-shaped icon).
     Ease of Access button on Windows Login screen
  6.  A command prompt should appear. Make sure that the console is running under NT Authority\SYSTEM: whoami
    Open the command prompt under the Local System Account on Windows Login screen

Reset the Windows Administrator Password from Command Prompt

From a command prompt that is run with SYSTEM privileges, you can manage any local Windows accounts.

List the user accounts with administrator rights on the computer (members of the built-in Administrators group).

net localgroup administrators

The name of the built-in local group Administrators in Windows varies by language. For example, in the localized French version of Windows, it is administrateurs.

In this example, there are two users in the Administrators group. You can reset the password for any of these users to log on to Windows.

net localgroup administrators : list local admins

If the group is empty, this means that you need to assign administrator rights to one of the available local Windows users. List all local users:

net user

To add user1 to the local Administrators group, run the following command:

net localgroup administrators user1 /add

If you have no other users on the computer except the built-in Administrator account, you can reset the password for this account.

To reset the password for the user (in this example, the username is “root“), run the following command:

net user root *

Set a new password and confirm it. The new password must meet your Windows password policy requirements regarding complexity and length.

net user: reset password

Now, ensure that your account is enabled. List the account information:

net user root

If the user is disabled (Account active: No ), enable it:

net user root /active:yes

net user - enable account

Now verify that you can access Windows with the account that you reset the password for (by default, the Windows sign-in screen displays the list of enabled local accounts).

Create a New Local User When Only a Microsoft Account Exists in Windows

If you use a Microsoft account on your computer, you can reset your password via https://account.live.com/password/reset. If you cannot recover your MSA password this way, you will need to enable the local Administrator account, reset its password and log in with it, or create a new local user with local administrator permissions (see below for details).

You can manually create a new local user, set a password for them, and add them to the built-in Administrators group. This can be useful if you only have a Microsoft account on your computer.

To see what types of accounts are available on your computer, run the following in the command prompt:

powershell.exe (to switch to PowerShell prompt)

Get-LocalUser| select Name,Enabled,PrincipalSource

The last PowerShell command will list the available user accounts on the computer. In my case, only one MicrosoftAccount, with the name winos, is enabled on a computer. The type of account (local, MSA, or domain) is identified by the value in the PrincipalSource field.

List local users - there is only microsoft account available in Windows 11

Run the following command to create a new local user.

net user myNewUser1 /add *

Set a password for the user.

Add the user to the local Administrators group. If you are using a localized version of Windows, change the group name.

net localgroup Administrators myNewUser1 /add

cmd: create new local user add to admins

If you receive the error ‘The Sign-in method you’re trying to use isn’t allowed’ when trying to sign in to Windows, it means that you have the corresponding Group Policy setting is enabled on your computer. You can use the local GPO editor (gpedit.msc) to disable this policy option (this MMC snap-in can be run from the command prompt on the Windows logon screen).

Once everything is working properly, replace utilman.exe with the original file to avoid leaving a security vulnerability in Windows. Restart the computer in recovery mode, or boot it from a USB stick or ISO image.  Open a command prompt and replace utilman.exe with the original file from the backup.

copy c:\windows\system32\utilman.exebak c:\windows\system32\utilman.exe /y

Then restart your computer.

The above example shows how to reset the Windows password by replacing the utilman.exe file with cmd.exe. Note that the same trick can also be used by replacing the sethc.exe executable. If you replace the sethc.exe executable with cmd.exe, you can launch an elevated Command Prompt from the Windows sign-in screen by pressing the Shift key five times (this triggers the Sticky Keys accessibility feature, which executes sethc.exe).   

After resetting a user’s password, you will still have access to all files in the user profile, installed programs and settings, saved passwords in Windows Credential Manager, and other data available to that user; however, access to EFS‑encrypted files may be lost (as the encryption keys are tied to the original user credentials).

If the computer is joined to an Active Directory domain, additional domain Group Policies (GPOs) may affect local administrator accounts. For example, in managed environments, administrators can use Group Policy to: disable local user accounts, remove local users from the Administrators group, and automatically rotate the built-in local Administrator password using Windows LAPS. Resetting the local administrator password may not be enough because these policies can be reapplied once the computer contacts a domain controller.

So, if you need to reset the local administrator password on a domain-joined computer, you must first reset the local policies and clear the GPO cache, and then disconnect the computer from the network before signing in with the new local Administrator password. This helps prevent the domain from immediately reapplying policies that could disable the account or overwrite its password.

In the same way, you can reset the Active Directory domain admin password.
4 comments
6
Facebook Twitter Google + Pinterest
Windows 10Windows 11Windows Server 2022Windows Server 2025
previous post
Check for Open (Listening) Ports with PowerShell
next post
How to Backup and Copy Local Group Policy Settings to Another Computer

Related Reading

How to Restore Deleted EFI System Partition in...

July 21, 2026

How to Allow Multiple RDP Sessions on Windows...

April 28, 2026

How to Run Program without Admin Privileges and...

June 8, 2023

How to Install RSAT (Remote Server Administration Tools)...

March 24, 2026

Wi-Fi (Internet) Disconnects After Sleep or Hibernation on...

March 15, 2024

Managing Windows Firewall Rules with PowerShell

March 11, 2024

Upgrading to Windows 11 on Unsupported Hardware

February 19, 2026

How to Delete Old User Profiles in Windows

March 15, 2024

4 comments

John Lanigan July 9, 2025 - 4:36 pm

Excellent doc thanks. Very clear instructions around the ease of access part

Reply
Ant1 July 11, 2025 - 3:50 pm

Thanks a lot for the guide
Very usefull. I’ve achieved to recover some important document from the laptop of my father whose recently deceased

Some notes :
– name of local groups (admnistrators for exemple) seems to be language related.
At least for french language, this is the case (administrateurs)
– if you can’t change the boot setting in the bios (lock by a password for exemple) and it don’t boot on removable device by default, it appear that the Windows troubleshoot menu can solve this (shift+clic the “reboot” menu when you are in the login screen)

Reply
Andy July 31, 2026 - 7:33 am

hard to use it nowdays since bitlocker “blocks” it.

Reply
serg July 31, 2026 - 7:41 am

use the manage-bde command to unlock the protected drive using the recovery key then make the file changes. This method is commonly used for non-malicious reasons.
However, another issue is that this trick is more likely to destroy saved credentials and invalidate Office credentials in the target account

Reply

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Recent Posts

  • Windows Installer Service Could Not Be Accessed? How to Fix It

    July 28, 2026
  • Why Windows Reports No Internet Access: How Connectivity Detection Works

    July 26, 2026
  • Inactive TS Ports in Windows: Causes and Fixes

    July 20, 2026
  • Add Wireless Wi-Fi Profiles on Windows Devices via Export/Import or GPO

    July 13, 2026
  • CrowdSec on Windows: From Installation to Threat Blocking

    July 3, 2026
  • Manage Microsoft Store Apps with Store CLI in Windows 11 from Terminal

    July 2, 2026
  • Windows Sandbox on Windows 11: Enable, Configure, and Use

    June 10, 2026
  • How to Monitor Windows Machines with Zabbix

    May 26, 2026
  • Fixing Duplicate Security Identifier (SID) Issues in Windows

    May 25, 2026
  • Monitor a Folder for File Changes Using PowerShell and FileSystemWatcher

    May 15, 2026

Follow us

  • Facebook
  • Twitter
  • Youtube
  • Telegram
Popular Posts
  • How to Allow Multiple RDP Sessions on Windows 11 and 10
  • How to Repair EFI/GPT Bootloader on Windows 10 or 11
  • How to Restore Deleted EFI System Partition in Windows
  • Network Computers are not Showing Up in Windows 10/11
  • How to Run Program without Admin Privileges and Bypass UAC Prompt
  • Fix: BSOD Error 0x0000007B (INACCESSABLE_BOOT_DEVICE) on Windows
  • Install and Manage Windows Updates with PowerShell (PSWindowsUpdate)
Footer Logo

@2014 - 2026 - Windows OS Hub. All about operating systems for sysadmins


Back To Top