reset password

# Set the Password-String -- defaults to THIS.IS.NOT.SECURE
$newpwd = ConvertTo-SecureString -String "THIS.IS.NOT.SECURE" -AsPlainText –Force

# Set the correct local user you want to reset
$UserAccount = Get-LocalUser -Name "ADMINUSER"

# Set it
$UserAccount | Set-LocalUser -Password $newpwd

Leave a Reply

Your email address will not be published. Required fields are marked *