A hashtable is Similer an array,But it use "key = value” type of syntax.
Let's See how to use FilterHashTable for a filter.
Here is I am trying to get the System event with the specific event ID 1017.
I passed a parameter "Maxevents", will list the only one event .
Get-WinEvent -FilterHashtable @{LogName = 'System'; ID = 1014} -MaxEvents 1|ft -Wrap
No comments:
Post a Comment