Avatar of SquigglyMonkey
SquigglyMonkey
 asked on

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.
Scripting LanguagesPowershellWindows 10AzureWindows Server 2016

Avatar of undefined
Last Comment
SquigglyMonkey

8/22/2022 - Mon
serialband

query user /server:SERVER_NAME
ASKER CERTIFIED SOLUTION
Adam the 32-bit Aardvark

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SquigglyMonkey

ASKER
Thanks Adam, that link had what exactly what I needed.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes