Microsoft 365

Exchange Online PowerShell v2 module by Roland Ehle

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 donald.duck@sid-500.com | out-file c:\temp\result1.txt 
get-exomailbox donald.duck@sid-500.com | 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.
(get-exomailboxstatistics donald.duck@sid-500.com).TotalItemSize.Value.ToMB()

will work!

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

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 )

Google photo

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

Twitter picture

You are commenting using your Twitter 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.