Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $evtIDs = (3,5)
- $countEvtID = (Get-EventLog -LogName System | where {$_.EventID -eq $evtIDs}).count
- if ($countEvtID -gt 0){write-host "Event ID's Exist"}
- else{Write-Host "Event ID's Don't exist" }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement