mkramer777
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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