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
don't use -notLike, -notMatch with Regular-Expression works in one line:
Get-MailBoxPermission -id newsletter | ? {$_.User -NotMatch "NT-AUTORIT.*|.*-Admins|.*Administrators|.*Manage.*"}