Link to home
Start Free TrialLog in
Avatar of mkramer777
mkramer777Flag for United States of America

asked on

active directory users

Windows Server 2008 R2.  How do you reconcile or run a program on the server to show which users have not logged into the network or had a response from a DHCP server in the past year?  Not sure if I'm explaining that right.  One time I had someone do this for me on our server and it showed the users that have not logged into the network for a year.  They ended up having a red x beside the name.  Want to clean up active directory.
ASKER CERTIFIED SOLUTION
Avatar of Maclean
Maclean
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Lee W, MVP
You can use a powershell script for the users - see this TechNet entry:
https://gallery.technet.microsoft.com/scriptcenter/Get-Active-Directory-User-bbcdd771

As for finding stale computers (DHCP, I don't think, is a good method).
Here are a couple of scripts that can get you that information.
http://pipe2text.com/?page_id=121
https://gallery.technet.microsoft.com/scriptcenter/Get-Inactive-Computer-in-54feafde