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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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