LATEST UPDATES
latest

Reset Windows 10 Password using PowerShell


powershell change local admin password securely
Resetting Windows 10 passwords can be a pain, especially if you are unable to get in to your account, i.e. you are unable to login. Here’s a simple way to reset your Windows 10 password using the Windows 10 PowerShell. If you haven’t used the Windows 10 PowerShell before, this is a good place to start since it will give you an idea of how useful yet how simple and easy to use it can be.

For this method to work, you need to have another account on that same Windows 10 PC where you are locked out of your account, that too with Admin privileges. If you do have such an account, read ahead to know how you can reset your Windows 10 account password using PowerShell.

1. Login to the other account in the Windows 10 PC which has the Admin privileges
2. Search for the term “powershell”, without the quotes, in the Windows 10 Start menu by first pressing the Start button, and then typing in that term
powershell change password
3. When you can see the Windows 10 PowerShell option as shown in the above screenshot, click on the Run as Administrator option on the right (also seen in the above screenshot)
4. If done correctly, this should bring up the Windows 10 PowerShell, a blue window with a blinking cursor
powershell set local user password securestring
5. In this window, type in the below command to reset the password for your Windows 10 locked account. Remember to replace the word username with the real username for your locked account, and the word password with the new password that you want to set for the locked account from the command below. These are marked in bold, although you do not need to type them in bold, you can simply copy-paste them from here

Set-LocalUser -Name username -Password (ConvertTo-SecureString "password" -AsPlainText -Force)

For example, if the username for your locked account is andrewsmith, and the new password that you want to set for this account is rubicscube1998 then the above command would like something like this:

Set-LocalUser -Name andrewsmith -Password (ConvertTo-SecureString "rubicscube1998" -AsPlainText -Force)

Although, I would not suggest you to use such a simple password for your WIndows 10 PC

6. Once done, close the Windows 10 PowerShell and restart your Windows 10 PC. Now login to your locked account with the new password that you had set using the Windows 10 PowerShell

Hope you find this helpful, this method works even if the account for which you would like to reset the password is an Admin account as long as you have access to another account on the same Windows 10 PC that too has Admin privileges. If you don’t, no need to worry, there are other ways to reset your Windows 10 PC that I have written about. But, if this article did solve your problem, don’t forget to Like, Share, and Subscribe.
« PREV
NEXT »