Powershell and where

Another thing I wanted to share.  If you want to say Get-MailboxServer but only want a subset of server you could try this:

Get-MailboxServer | Where {$_.Name -LIKE “*Serv01” -OR $_.Name -LIKE “Ex*NYC*”}

Enjoy

Leave a Reply

%d bloggers like this: