Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # SET PRE-DEFINED PASSWORD HERE:
- $defaultNewPassword = "password123"
- Write-Host "The Lowry Quick Password Rester v1.0.0"
- Write-Host "--------------------------------------"
- Write-Host ""
- $username = Read-Host -Prompt 'Please type in the username: '
- $newpassword = ConvertTo-SecureString -String $defaultNewPassword -AsPlainText βForce
- Set-ADAccountPassword jfrost -NewPassword $newpwd -Reset -PassThru | Set-ADuser -ChangePasswordAtLogon $True
- Write-Host $username + "'s password has been changed to: " + $defaultNewPassword
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement