re-open
Public

Bulk Modify Active Directory users Last Password Set Date.

1 answer

Staff June 19, 2016

You will need to use Quest Active Directory and load it in Powershell.
 
Below script will change AD users last password set to Today’s date.

 Add-PSSnapin Quest.ActiveRoles.ADManagement
$Ou=’Cn=users, Dc=domain, Dc=com’ # select OU where users resides  Set-QADUser -SearchRoot $Ou | Set-QADUser -ObjectAttributes @{pwdLastSet=0}
Get-QADUser -SearchRoot $OU | Set-QADUser -ObjectAttributes @{pwdLastSet=’-1′}

#1

Please login or Register to Submit Answer

Social