// Read the Security log on the Server \\EDU12
// Filter event 529 (Logon Failure) and 644 (User Account Locked Out)
// Write the result to the file logtmp.txt
// Send the file by E-mail
// Delete the file
// Send a winpopup message to the administrator
[Batch_Begin]
Clear.Window Main
Get.Data \\EDU12
Write.File c:\temp\ev529_644.log ; Main ; %col1-%
DOS c:\ntreport\blat.exe c:\temp\ev529_644.log -t test@wennstrom.nu -s " \\EDU12 529 644 %date%"
DOS del c;\temp\ev529_644.log
DOS net send administrator "NTreport found %MainRows% entries with ID 529 / 644 in the security log."
[Batch_End]