Password reset windows powershell
Jump to navigation
Jump to search
Local user
$password = Read-Host -AsSecureString $UserAccount = Get-LocalUser -Name "User02" $UserAccount | Set-LocalUser -Password $password
AD
$password = (Read-Host -Prompt "Provide New Password" -AsSecureString) Set-ADAccountPassword -Identity foo -Password $password