Quantcast
Channel: Use -notlike to filter out multiple strings in PowerShell - Stack Overflow
Viewing all articles
Browse latest Browse all 10

Answer by js2010 for Use -notlike to filter out multiple strings in PowerShell

$
0
0

Using select-string:

Get-EventLog Security | where {$_.UserName | select-string -notmatch user1,user2}

Viewing all articles
Browse latest Browse all 10

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>