DSQuery

Using DSQuery to disable user accounts after inactivity period

Query AD for users that have been inactive for 13 weeks

dsquery user “CN=Users,DC=Domain,DC=local” -inactive 13

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.