Exchange 2013/O365 and Great Powershell Tips from Microsoft colleagues

I- Use “-Filter” parameter where available instead of “where” statements’ For example, the following commands provide the same results: Get-Recipient –ResultSize Unlimited | Where {($_.RecipientTypeDetails –eq "UserMailbox") –and ($_.DisplayName –like "*Zarka")} Get-Recipient –ResultSize Unlimited –Filter {(RecipientTypeDetails –eq "UserMailbox") –and (DisplayName –like "*Zarka")} In a large environment the first command takes an extremely long time to…

1

Reminder – Adding Exchange 2010 or 2013 snap-in using Add-PSSnapin not supported – Better use Remote Powershell (From RMilne)

  As a bookmark, my buddy Rhoderick Milne has written an excellent article about the best way to invoke Exchange PowerShell environment (other than loading the “Exchange Management Shell” itself from the Windows menus – for example, if you want to use a Windows Powershell session you’re currently in, or simply the Powershell Integrated Scripting…

3