I'm perfoming queries on the event viewer (Win32_NTLogEvent)
Is there anyway to just select the top 10 or max 5 return events
I had already try with TOP
, LIMIT
or ROWCOUNT
but nothing works
Get-WmiObject -Query 'SELECT * FROM Win32_NTLogEvent WHERE (SourceName = "Microsoft-Windows-Kernel-Power" and EventCode = "41")'