OK, I've looked all over for a good answer but haven't had much luck. I need to remotely search my Server 2008 DCs for all User Account Lockouts (Security event 4740, I believe) for the past 24 hours only and save this to a text file. I also only need the following data in the file:
(1) Logged (date/time)
(2) TargetUserName (domain user ID)
(3) TargetDomainName (the PC/Server where the account locked)
I would like to use PowerShell for this. Any help would be appreciated.