retro64xyz

4.1-1

Mar 30th, 2023
1,199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PowerShell 0.17 KB | Cybersecurity | 0 0
  1. Get-LocalUser
  2. $Password = Read-Host "Enter the new password" -AsSecureString
  3. $UserAccount = Get-LocalUser -Name "Administrator"
  4. $UserAccount | Set-LocalUser -Password $Password
Advertisement
Add Comment
Please, Sign In to add comment