If you must change or reset your account password because it’s been compromised, or it’s too easy to guess, and you want to set a more complex password, you can use a few simple PowerShell commands. In this guide, you’ll learn the steps to change the current password of your Windows 10 local account using PowerShell.

Change account password from PowerShell on Windows 10

To change a local account password from PowerShell, use these steps: Once you complete the steps, sign out and sign back into your Windows 10 account using the new password.

In the second command, make sure to replace “admin” with the name of the account that you want to reset its password.

The instructions outlined above apply to a local account. You must follow these steps to change or reset the password if you have a Microsoft account. If you want to reset a password using Command Prompt, use this other guide. While this guide focuses on Windows 10, the above steps should also work on Windows 8.1 and 7. All content on this site is provided with no warranties, express or implied. Use any information at your own risk. Always backup of your device and files before making any changes. Privacy policy info.