Microsoft recently published the new version of the Exchange Online PowerShell module. This module can be used to address timeout issues when working in bigger environments with many mailboxes but it has much more advantages.
- MFA Support – Microsoft recommends to have Multifactor Authentication enabled for all Admin accounts. The new module fully supports MFA
- New Commandlets work faster because the output contains only certain properties. Let’s compare the size of the output
get-mailbox email@example.com | out-file c:\temp\result1.txt get-exomailbox firstname.lastname@example.org | out-file c:\temp\result2.txt
If you compare the size of the resulting files, you will recognize, that the result1.txt file is about 2.5 times bigger than result2.txt (in my case 2,47 KB to 747 Byte). Now imagine you execute $allboxes = get-mailbox -ResultSize Unlimited command in an environment with 10.000 mailboxes.
- Output of commandlets is deserialized. This means you can use the resulting output i.e. for calculations, like total size of all mailboxes in your organization.
These are the highlights I found and I encourage you to give the new module a try. Installation is very easy:
Install-Module -Name ExchangeOnlineManagement
Connecting to EOP:
Connect-ExchangeOnline -UserPrincipalName -ShowProgress $true
Read more at Microsoft