Neptune IT
asked on
Need help with scripting
Hi,
Can someone tell me script to get all the computer names in AD in specific OU with Last logon date.
Can someone tell me script to get all the computer names in AD in specific OU with Last logon date.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you need to locate stale computers then lastlogontimestamp is good enough.
But for more precise data you need to use lastlogon and since it is not replicated field, you need to iterate all your domain controllers to get the most recent value.