Reset Windows 10 Password Using cmd or powershell or Using Recovery Media

0

 

You Must be an Administrator Account

Click on the Start menu and type cmd, to open the command prompt window.

Be sure to right-click on cmd and run the command prompt as administrator so you have the rights to make changes.

2. With the Command Prompt window open, type net user for all users or whoami for active user.

The user server is logged in.


3. Now type net user followed by your logged-in user account.

net user server

Reset Windows 10 Password via the Command Prompt

Once you’ve confirmed your logged-in account has permission to reset the password, you can now reset the password. To do that:

With the Command Prompt still open, type net user followed by the user account and the new password. The command below is changing the local server user account’s password to pass.

net user server pass

Once complete, you can now login with the server account with the new password!

Resetting a User Password via PowerShell

The more “modern” way to reset a Windows 10 user password is to use PowerShell.

To reset a user password via PowerShell:

Windows logo then x or

Click on the Start menu, type in ‘powershell’ and open Windows PowerShell as administrator.

Procedures

The Set-LocalUser cmdlet is the command that actually changes the password.

Set-LocalUser -Name server -Password (ConvertTo-SecureString "pass" -AsPlainText -Force)

Resetting a Locked Out Windows 10 Password (Safe Mode)

To reset a user password while not logged in, you’ve got two options; using Windows 10 safe mode and recovery media.

Using Safe mode

First up, you need to get into safe mode. To do that:

Log out of Windows 10.

From the main login screen, press and hold the Shift key while clicking Restart as shown below. Once restarted, Windows 10 will be at a spot to tell it you need to boot into safe mode.

Restarting Windows 10 in safe mode

3. From the Advanced Boot Options screen, click on Troubleshoot.

4. select Advanced Options.

5. Click on Startup Settings.

6. Once restarted, Windows 10 will be in safe mode.

7. After restarting, the Startup Settings screen will list several options to choose from. Press 4 to restart into safe mode.

8. Choose Command Prompt opens with elevated privileges (Administrator:)

9. Once you have the Command Prompt open in safe mode, the only thing left to do is use net user to reset the password for the user account.

net user server pass

Using Recovery Media

Insert the recovery media and restart the computer. Once Windows reboots, the Windows setup screen will appear.

2. Press Shift + F10 to open a Command Prompt.

3. Type the following in the command prompt

move c:\windows\system32\utilman.exe c:\

 copy x:\windows\system32\cmd.exe c:\windows\system32\utilman.exe

4. Now, remove the recovery media and restart the computer again.

5. in Windows 10 sign-in screen tap the Utility Manager icon found on the bottom-right corner to run the command prompt.

6. Now that you’re in a command prompt again, simply change the password with net user as before.

net user server pass

7. That’s All

 






Post a Comment

0Comments

"Please keep your comments respectful and on-topic."
"Your email address will not be published."
"HTML tags are not allowed in comments."
"Spam comments will be deleted."

Post a Comment (0)