We help IT Professionals succeed at work.

Script to list logons on a specific domain controller

Script to list logons on a specific domain controller, which the user actually logged onto that domain controller. Trying to look up examples and I just keep finding ways to find a specific user, I want all of the logons for the past X hours, of any user.
Comment
Watch Question

CERTIFIED EXPERT

Commented:
query user /server:SERVER_NAME
Software Developer
CERTIFIED EXPERT
Commented:

In the following article you have a few examples of how to check logons on a particular machine using Event logs:

How to check Windows Event Logs with PowerShell (Get-EventLog)

Author

Commented:
Thanks Adam, that link had what exactly what I needed.