Home > Quick Guides > [4 Steps] How to Change Local User Password with PowerShell
On your Home screen, right-click and choose Open in Terminal from the menu.
On the Windows Powershell window, type Get-LocalUser and press Enter.
Then type $Password = Read-Host "Enter the new password" -AsSecureString. Now enter your new password.
Lastly, type
$UserAccount = Get-LocalUser -Name "admin"
$UserAccount | Set-LocalUser -Password $Password
to apply the new password.
Leave a Reply.