QuickRef–Powershell-Get Exchange services except IMAP4 and POP3

 

get-service *Exchange* | ? {-not ($_.name -like “*IMAP4*”) -and -not ($_.name -like “*POP*”)}

 

Notes:

“?” is the alias for “Where-Object”

CommandType     Name                                                Definition
———–     —-                                                ———-
Alias           ?                                                   Where-Object

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.