Instructions to change Windows 10 password using PowerShell
There are many ways to change Windows 10 password. In this article, TipsMake will guide you how to change password using PowerShell - a useful and powerful tool. Follow the instructions below to do it correctly.
Windows 10 is a multi-featured operating system with many supporting tools, including PowerShell. Instructions for changing Windows 10 password using PowerShell will help you discover another useful feature of this tool.
Instructions to change Windows 10 password using PowerShell
Step 1: Click Start and type PowerShell => Right-click and select Run as Administrator .
Step 2: PowerShell (Admin) will open immediately. Enter the command Get-LocalUser to list all users on the machine.
The user list appears. The Enabled column displays True (enabled) or False (not enabled).
Step 3: To change the password enter the following command:
$Password = Read-Host "Enter the new password" -AsSecureString
Step 4: Press Enter , enter the new password, then press Enter again to complete.
Step 5: You need to assign a new password to your Windows 10 account using the following command:
$UserAccount = Get-LocalUser -Name "Computer user name"
After the above command, type $UserAccount | Set-LocalUser -Password $Password to change the assigned password.
Once done, close PowerShell and restart your computer to check if the Windows 10 password change was successful.
Here is how to change Windows 10 password using PowerShell. PowerShell not only changes passwords but also has many other useful features. Those who are passionate about exploring computers will not ignore this trick.
If you want to learn more about cool PowerShell commands, check out this article for more details.
You've just finished reading the article "Instructions to change Windows 10 password using PowerShell" edited by the TipsMake team. You can save instructions-to-change-windows-10-password-using-powershell.pdf to your computer here to read later or print it out. We hope this article has provided you with many useful tech tips and tricks. You can search for similar articles on tips and guides. Thank you for reading and for following us regularly.
- How to install PowerShell 7.0 in Windows 10/8/7
- How to change your computer password for the most popular operating systems.
- 12 Most Useful PowerShell Commands for Windows
- About PowerShell
- Instructions on how to change the password of a computer running Windows 7, 8, 10 fastest and most convenient
- Instructions to change Garena password quickly and easily