Skip to content

PowerShell Password Management⚓︎

Reset a user password securely, enable the account, and force the user to reset it on next logon.

PowerShell
1
2
$NewPassword = (Read-Host -Prompt "Provide New Password" -AsSecureString)
Set-ADAccountPassword <user> -NewPassword $NewPassword -Reset -PassThru | Set-ADUser -ChangePasswordAtLogon $True -Enabled $True

References⚓︎

-