Link to home
Get AccessLog in
Avatar of mkramer777
mkramer777Flag for United States of America

asked on

active directory users

Is their a process for finding out which active directory users have not had any activity for let's say 1 year?  I know I have many users in AD that are old and can be deleted.  How about a backup of AD before I start doing anything?
Avatar of Lee W, MVP
Lee W, MVP
Flag of United States of America image

Link to home
This content is only available to members.
To access this content, you must be a member of Experts Exchange.
Get Access
Step 1: Use Dsquery Command
Dsquery user –inactive X –limit 0

Step 2: Export the List of Inactive Users
Dsquery user –inactive X > C:\Folderyouwantthereportsin\inactive users.csv

Managing Inactive Active Directory Accounts Using PowerShell:

Hope this helps!