mkramer777
asked on
active directory users
Is there some sort of program I can run or a script (not sure if that is what it is) that will tell me the users and computers in active directory that have not logged onto the system using in between dates? I am looking to delete some of them that are no longer needed. Clean it up a little. Any ideas?
Or you can use the command line tool DSQUERY.
DSQUERY user -inactive 13
Should display a list of users who have been inactive for the last 13 weeks (3 months)
Reference DSQUERY /? or http://ss64.com/nt/dsquery-user.html
DSQUERY user -inactive 13
Should display a list of users who have been inactive for the last 13 weeks (3 months)
Reference DSQUERY /? or http://ss64.com/nt/dsquery-user.html
ASKER
Is there a dsquery for computers?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The scripts below will find all users and computers that are less then a month but greater than 5 months.
Users
Open in new window
Computers
Open in new window
Will.