Question Locked

Script Active directory

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I need a script to run so we can determine what computers have not logged onto the domain for a seven month period of time.
I would like to be able to run a report that would show me a list of all laptops and desktops in active directory that have not logged into the domain for the past 7 months, and to also show all laptops and computers that are disabled. If the report could show computer name, date of last log in, and site location it would be a help.

3 replies

by tmalo627

Audit logon events through your group policy. If you have not had auditing enabled, I don't know of a way to go back into the history like that. I don't tihnk it is stored otherwise.

Computer Configuration > Local Policies > Audit Policy > Audit Account Logon Events

Hope this helps.

This discussion is closed to new replies.