PowerShell - System Administration
What is wrong with this command?
Get-WinEvent -LogName Application -FilterXPath "*[System[(Level=2)]]" -MaxEvents 5
Get-WinEvent -LogName Application -FilterXPath "*[System[(Level=2)]]" -MaxEvents 5
*[System[(Level=2)]] correctly filters events with Level 2 (Error).-MaxEvents can be combined with -FilterXPath to limit results.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions