Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. $domain = ''
  2. $user = ''
  3. $oldPassword = (Read-Host 'Old Password' -AsSecureString)
  4. $newPassword = (Read-Host 'New Password' -AsSecureString)
  5.  
  6. Set-ADAccountPassword -Server $domain -Identity $user -OldPassword $oldPassword -NewPassword $newPassword
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement