HUGE help, out of trying basic Command Line, Kixtart, and Visual Basic Scripts, this seems to be the best method. I just need to tweak this a little bit, and not sure how. Here is the script I am using below:
LogParser "SELECT TimeGenerated, SourceName, EventCategoryName, EventID, ComputerName, SID, Message INTO report.txt FROM Security WHERE (EventID = 528 OR EventID = 551) AND SID = 'BCR\PavelZ'" -resolveSIDs:ON -o:CSV
I would like to omit the message but there is one thing in there that I really need, the "Login Type".
Here are the "message" portion of that script:
"Successful Logon: User Name: PavelZ Domain: BCR Logon ID: (0x0,0x158500) Logon Type: 11 Logon Process: User32 Authentication Package: Negotiate Workstation Name: WS100607 Logon GUID:
Notice the (Logon Type: 11), do you know of a command line switch to get that field, so that I can omit that entire message?
Another question is, is there a way to Output to and SQL DB, I saw that as one of the Output Switches, but not sure how to use it. If you have a sample, that would be awesome.
Thanks so much!
Main Topics
Browse All Topics





by: bbaoPosted on 2008-07-23 at 00:36:29ID: 22066799
> Monitor workstations in domain and record Logon/Logoff activity.
/logons.ht ml
echnet/scr iptcenter/ tools/ logp arser/defa ult.mspx
N (Strings, 1, '|'), '\\'), EXTRACT_TOKEN(Strings, 0, '|')) AS Username FROM \\SERVERNAME\Security WHERE EventID IN (552; 528)'" -i:EVT
(Already have GPO settings for this: "Audit account logon events", "audit logon events")
you may try this utility and see if it is what you need.
LogonWatcher 2.1.1
http://www.alxsoft.com/win
> Need to pull this info from workstations to central server. This is easily done manually, by going to the Event Log on Server and "Connect to remote machine", then pull the logs.
this MS utility may help you generating the logon/off report. as you may put the following line in a script, you may make it automatic.
Log Parser 2.2
http://www.microsoft.com/t
a usage sample:
logparser "SELECT ComputerName, TimeGenerated AS LogonTime, STRCAT(STRCAT(EXTRACT_TOKE
hope it helps,
bbao