PowerShell: Changing Account Expiration Dates
Sometimes we need to change a large number of expiration dates and doing it by hand can be quite a task, here I have two examples on how to do this. Both required Quest Active Roles Management Shell for Active Directory. Example 1 – If all the account have an attribute such as the description that is the same, it can be done this way, but it MUST be the same and match exactly: Get-QADUser -ou “ou=users,dc=site,dc=local” -includedproperties description,AccountExpires,SamAccountName -sAMAccountName…