Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $user=Read-Host "Podaj login: "
  2. $password=Read-Host "Podaj has³o: "
  3. Set-ADAccountPassword -Identity $user -Reset -NewPassword (ConvertTo-SecureString -AsPlainText $password -Force)
  4. Read-Host "The password have been resetg!!!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement