Wednesday, June 24, 2015

Powershell disable users that don't login to domain for XX days

Hi mates,
I had the need to disable old/zombie users since my friend's active directory was not maintained in a clean state. Something easy : query AD with some exclusion, an email with an attachment to recap everything. More explanations later....in the meantime customize and enjoy.

No complications, no tricks, only the essential.
Hope this helps.
See you soon.

No comments:

Post a Comment