I\'m trying to read the event log for a security audit for all users except two, but is it possible to do that with the -notlike operator?
-notlike
It\'s somethi
I think Peter has the right idea. I would use a regular expression for this along with the -notmatch operator.
Get-EventLog Security | ?{$_.Username -notmatch '^user1$|^.*user$'}