I want to match the output of PsLogList (http://technet.microsoft.com/en-us/sysinternals/bb897544.aspx) for the pattern "No records in System event log on COMPUTER.". If no events of a certain type are found, PsLogList displays something like:
"
PsLoglist v2.71 - local and remote event log viewer
Copyright (C) 2000-2009 Mark Russinovich
Sysinternals - www.sysinternals.com
System log on \\COMPUTER:
No records in System event log on COMPUTER.
"
I tried the following:
iff "%@execstr[psloglist -i 41 -m 30]" =~ ".*No records in System event log on.*" then
echo matches
endiff
Unfortunately, PsLogList echoes "No records in System event log on COMPUTER." to standard error and all my attempts to have execstr merge standard output and error were in vain. Can someone help me with that??
Thorsten
"
PsLoglist v2.71 - local and remote event log viewer
Copyright (C) 2000-2009 Mark Russinovich
Sysinternals - www.sysinternals.com
System log on \\COMPUTER:
No records in System event log on COMPUTER.
"
I tried the following:
iff "%@execstr[psloglist -i 41 -m 30]" =~ ".*No records in System event log on.*" then
echo matches
endiff
Unfortunately, PsLogList echoes "No records in System event log on COMPUTER." to standard error and all my attempts to have execstr merge standard output and error were in vain. Can someone help me with that??
Thorsten