June 3rd, 2014

PowerTip: Find Permissible Event Log Keywords with PowerShell

Doctor Scripto
Scripter

Summary: Learn to find permissible event log keywords values with Windows PowerShell.

Hey, Scripting Guy! Question How can I use Windows PowerShell to find examples of keywords when I use a FilterHashTable value
          with Get-WinEvent?

Hey, Scripting Guy! Answer Create an instance of the StandardEventKeywords enumeration, and then look at the Static properties:

[System.Diagnostics.Eventing.Reader.StandardEventKeywords] | gm -s -MemberType property

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.