Can anyone help me to convert below command into wmi query or get-wmiobj -filter, as it takes more time for remote servers.
Get-EventLog -ComputerName $Comp -LogName System -After (Get-Date).AddDays(-3) -ErrorAction Stop |
? { $_.EntryType -eq "Critical" -or $_.EntryType -eq "Warning" -or $_.EntryType -eq "Error"}
Thx for your time.