How to get just description field from a wevtutil output

1.4k views Asked by At

I can fetch latest 5 events generated by MsiInstaller from Event logs with -

wevtutil qe Application /rd:true /f:text /c:5 /q:"*[System[Provider[@Name='MsiInstaller']]]"

But the output is too descriptive. Is it possible to get only the description field as the output.

1

There are 1 answers

0
A_N On BEST ANSWER

As suggested by Stephan it worked perfectly. Below is the final string, for anyone like me, looking for a solution.

wevtutil qe Application /rd:true /f:text /c:5 /q:"*[System[Provider[@Name='MsiInstaller']]]" |findstr /v /b /c:" "|find /v "Event["