iSumsoft » Resources »Windows 11»Reset Windows 11 Password Using Command Prompt without Disk

Reset Windows 11 Password Using Command Prompt without Disk

Ralph Adolphs
Ralph Adolphs

Updated:

If you forgot your Windows 11 password and want to reset it without using any software and disk, then Command Prompt (cmd.exe) is a good choice. This article will show you how to reset Windows 11 password using Command Prompt without disk. You don't need any password reset disk or bootable disk, and you won't lose any data. It's worth noting that using Command Prompt you can only reset passwords for local accounts, not Microsoft accounts.

reset Windows 11 password using Command Prompt


Method 1: Reset Windows 11 password using CMD while logged in

You forgot your Windows 11 password but can still log in? This happens when automatic login is enabled for your account, or you have other sign-in options, such as a PIN. If so, you can easily reset your Windows 11 password using the Command Prompt while logged in without using any disk.

Step 1: Click the Search icon on your Windows 11 taskbar. Type cmd in the search bar, and when the Command Prompt appears in the search results, click Run as administrator.

run CMD as administrator

Step 2: If the User Account Control dialog pops up, click Yes to allow the Command Prompt app to open.

click Yes to open Command Prompt

Step 3: In the Command Prompt window, type net user and press Enter to list all user accounts on your Windows 11. Note down the username of the account for which you want to reset the password.

type net user command to show user accounts

Step 4: Type net user "username" password and press Enter. Replace username with the username of your account for which you want to reset password, and replace password with the new password you want. Once you are prompted that the command completed successfully, your Windows 11 password has been reset.

use net user command to reset password

Method 2: Reset Windows 11 password using CMD when locked out

You forgot your Windows 11 password and are totally locked out and unable to log in? This happens if it is your only account and you have no other login options. Anyway, don't worry. Even when locked out, you can still reset Windows 11 password using the Command Prompt without using any disk. Follow the steps below.

Step 1: Boot Windows 11 to Command Prompt.

Go to your Windows 11 login screen and click the Power button in the lower right corner. Then click Restart while holding the Shift key on your keyboard.

click Restart while holding Shift

Your PC will boot into the Windows recovery mode, which contains a series of advanced startup options. Choose Troubleshoot.

choose Troubleshoot

Choose Advanced options followed by Command Prompt, and the Command Prompt will open.

choose Command Prompt

Tips: If your PC can't boot to the Command Prompt, you need to reset Windows 11 password with a bootable USB drive.

Step 2: Replace utilman.exe with cmd.exe.

In the Command Prompt window, type diskpart and press Enter to launch the DiskPart tool.

type diskpart and press Enter

Type list volume and press Enter to list all volumes on your computer. Then determine the drive letter of the OS drive where your Windows 11 is installed according to the volume size or volume label.

list volume

Once you have determined your OS drive letter, type exit and press Enter to exit the DiskPart tool.

exit diskpart

Type move E:\windows\system32\utilman.exe E:\ and press Enter to move the utilman.exe file to the root directory of your OS drive for backup.

move utilman.exe file for backup

Type copy E:\windows\system32\cmd.exe E:\windows\system32\utilman.exe and press Enter. This will copy the cmd.exe file to E:\windows\system32 and name it utilman.exe.

replace utilman.exe with cmd.exe

Type wpeutil reboot and press Enter to restart your computer to Windows 11.

reboot computer

Step 3: Reset Windows 11 password using Command Prompt.

When you get to the Windows 11 login screen, click the Accessibility button (human icon) in the lower right corner. This will bring up a Command Prompt window.

In the Command Prompt window, type net user "username" password , for example, net user "Jess" 123456, and then press Enter to reset your Windows 11 password.

click Accessibility and reset password with command prompt

Once the password is reset, close the Command Prompt window and you can sign in to Windows 11 with your new password.

Step 4: Put back the utilman.exe file.

The utilman.exe file on your Windows 11 has been replaced with cmd.exe to reset your password. In the long run, this can be risky for your computer because anyone can click on the Accessibility icon on your Windows 11 login screen and then reset your password using the command prompt. To eliminate the risk, you'd better put back the Accessibility utility.

To do that, first sign in to your Windows 11 and open the Command Prompt as administrator.

In Command Prompt, type copy C:\utilman.exe C:\windows\system32\utilman.exe and press Enter. Type Yes and press Enter.

put back utilman.exe

Wrapping Up

Command Prompt is a good option to reset your forgotten Windows 11 password without losing data. But the process is a bit cumbersome if you are locked out of your Windows 11 and can't log in, especially if you are a non-technical user and not good at using Windows commands. Using the wrong command can screw up your Windows 10 system. So, if you want an easier way to reset your Windows 11 password than using the Command Prompt, iSumsoft Windows Password Refixer is your best choice.