Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Get-LocalUser
- $Password = Read-Host "Enter the new password" -AsSecureString
- $UserAccount = Get-LocalUser -Name "Administrator"
- $UserAccount | Set-LocalUser -Password $Password
Advertisement
Add Comment
Please, Sign In to add comment