Windows 10 is a multi-function operating system with lots of support tools as well as a lot of additional tools that users have not been able to discover yet. With instructions to change Windows 10 password with PowerShell, we will learn one more use of Powershell, one of the most useful tools and also an improved version with more power than the Command Prompt.
How to change your Windows 10 password with PowerShell
Instructions to change Windows 10 password with PowerShell
Step 1: Any Windows 10 has Powershell, to open Powershell we just need to turn on StartMenu up then type Powershell is out, but readers note that to change the Windows 10 password with PowerShell we have to open Powershell with Admin rights >> ie to choose Run as Administrator.
Step 2: Immediately Powershell interface with Admin rights appears, here you type the command Get-LocalUser let the system list all the available Users on your Windows 10 computer.
The list of Users appears, here you see the column Enabled value display True or False. If the display False means that the account is not activated and True means activated and in use.
Step 3: To proceed with changing the Windows 10 password with PowerShell with the new password now we only need to enter the following command:
$ Password = Read-Host “Enter the new password” -AsSecureString
Step 4: After typing Enter, proceed to enter the password you want to set and then press Enter to finish the command.
Step 5: Has that changed the Windows 10 password with PowerShell? Of course not yet because we still have to assign that new password to Windows 10 account on your computer by entering the command
$ UserAccount = Get-LocalUser -Name “Computer user name”
After finishing the command type continue $ UserAccount | Set-LocalUser -Password $ Password, this command allows you to change your Windows 10 password with the PowerShell we assigned above.
After the above operation, we just need to close Powershell, restart the computer, we can try to see if changing Windows 10 password with PowerShell has been really successful.
The above is a guide on how to change Windows 10 password with PowerShell, with instructions for changing Windows 10 password using the method of Powershell, again a good feature of Powershell is updated to our knowledge. Indeed, in addition to changing the Windows 10 password, Powershell also does a lot of different things, with those who are passionate about discovering computers, it is definitely impossible to ignore a good trick like this.
For those who are passionate about computers, want to learn more about Powershell, how PowerShell commands are used can refer to this article, our introduction to PowerShell commands or on Windows computers ten.