Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $domain = ''
- $user = ''
- $oldPassword = (Read-Host 'Old Password' -AsSecureString)
- $newPassword = (Read-Host 'New Password' -AsSecureString)
- Set-ADAccountPassword -Server $domain -Identity $user -OldPassword $oldPassword -NewPassword $newPassword
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement