Windows makes it simple for any user to change their password from the standard settings menu. But what if they forget it, or even get stuck on the login screen with their local administrator account disabled?
If this is the case, you can connect to their machine using a remote desktop tool such as SetMe, and assign a new Windows password via Command Line or PowerShell.
Here’s how you can do that.
Change Windows password for a local user
- Run Command Prompt as an administrator, or start Windows 10 in safe mode with Command Prompt at the login screen.
- Type
net user USERNAME NEWPASS
where you need to replace USERNAME and NEWPASS with the actual username and a new password for this user. - If the actual username consists of more than two words, place it inside quotation marks.
- Hit Enter.
For extra security, you may want to use the following command: net user USERNAME *
. Windows will then prompt you to enter the password twice. This way nobody around you will be able to see the password on your screen.
Looking for an easy solution to fix Windows issues remotely? SetMe is a remote support powerhouse that allows you to securely connect to any remote PC in just 3 easy steps.
Change Windows password for a domain user
- Run Command Prompt as an administrator, or start Windows 10 in safe mode with Command Prompt at the login screen.
- Type
net user /domain USERNAME NEWPASS
. Replace USERNAME and NEWPASS with the actual username and a new password for this user. - If the actual username consists of more than two words, place it inside quotation marks.
- Hit Enter.
Change Windows password for a domain user with PowerShell
- Run PowerShell as an administrator.
- Use the Set-ADAccountPassword cmdlet to change the user’s password:
Set-ADAccountPassword -Identity $user -Reset -NewPassword (ConvertTo-SecureString -AsPlainText "$newPass" -Force)
Replace $user and $newPass with the actual username and a new password. - Hit Enter.
Did you find this article helpful? See more Windows tips & tricks on our blog and follow us on Facebook, Twitter or LinkedIn to get all the latest posts and updates as they happen.
Check out SetMe, our brand new remote desktop solution that makes connecting to remote computers easier than ever before, and be sure to sign up for a fully-featured 30-day free trial:
Learn More About SetMe