goezler

AD__Force a OU to Change Password

Jan 21st, 2021 (edited)
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.15 KB | None | 0 0
  1. Get-ADUser -Filter * -SearchBaseOU=*",DC=**,DC=***” | Set-ADUser -CannotChangePassword:$false -PasswordNeverExpires:$false -ChangePasswordAtLogon:$true
Add Comment
Please, Sign In to add comment