This is a General Availability (GA) release of Exchange Online PowerShell V2 module.
Please check the documentation here -
For issues related to the module, contact Microsoft support.

Minimum PowerShell version


There is a newer prerelease version of this module available.
See the version list below for details.

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name ExchangeOnlineManagement -RequiredVersion 2.0.5

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name ExchangeOnlineManagement -Version 2.0.5

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More


Microsoft Corporation


(c) 2021 Microsoft. All rights reserved.

Package Details



Exchange ExchangeOnline EXO EXOV2 Mailbox Management


Get-EXOCasMailbox Get-EXOMailbox Get-EXOMailboxFolderPermission Get-EXOMailboxFolderStatistics Get-EXOMailboxPermission Get-EXOMailboxStatistics Get-EXOMobileDeviceStatistics Get-EXORecipient Get-EXORecipientPermission Get-MyAnalyticsFeatureConfig Get-UserBriefingConfig Get-OwnerlessGroupPolicy Get-VivaInsightsSettings Set-MyAnalyticsFeatureConfig Set-UserBriefingConfig Set-OwnerlessGroupPolicy Set-VivaInsightsSettings


Connect-ExchangeOnline Connect-IPPSSession Disconnect-ExchangeOnline


This module has no dependencies.

Release Notes

Whats new in this release:

v2.0.5 :
   1. Manage ownerless Microsoft 365 groups through newly added cmdlets Get-OwnerlessGroupPolicy and Set-OwnerlessGroupPolicy.
   2. Add new cmdlets Get-VivaInsightsSettings and Set-VivaInsightsSettings for Global/ExchangeOnline/Teams administrators to control user access of Headspace features in Viva Insights.

Previous Releases:

v2.0.4 :
   1. Manage EXO using Linux devices along with Browser based SSO Authentication for enhanced interactive management experience. No need to enter UserName and password everytime you run the PowerShell script.
   2. Manage EXO using Apple Macintosh devices. Supported versions of Apple MAC OS are Mojave, Catalina & Big Sur. Steps for installing PowerShell on MAC OS is documented here -
   3. Real time policy & security enforcement in all user based authentication. Continuous Access Evaluation (CAE) has been enabled in EXO V2 Module. Read more about CAE here -
   4. Use parameter InlineCredential to pass credentials of Non-MFA accounts on the go without the need of storing credentials in a variable
   5. More secure method to fetch access token using safe Reply URLs.
   6. Breaking change :- Change in cmdlet signature to configure MyAnalytics access for users in your tenant. Get/Set-UserAnalyticsConfig has been replaced by Get/Set-MyAnalyticsFeatureConfig Additionally, you can have more granular controls and configure access at feature level. For more steps read here -

v2.0.3 :
   1. General availability of Certificate Based Authentication feature which enables using Modern Authentication in Unattended Scripting or background automation scenarios.
   2. Certificate Based Authentication accepts Certificate File directly from terminal thus enabling certificate files to be stored in Azure Key Vault and being fetched Just-In-Time for enhanced security. See parameter Certificate in Connect-ExchangeOnline.
   3. Connect with Exchange Online and Security Compliance Center simultaneously in a single PowerShell window.
   4. Ability to restrict the PowerShell cmdlets imported in a session using CommandName parameter, thus reducing memory footprint in case of high usage PowerShell applications.
   5. Get-ExoMailboxFolderPermission now supports ExternalDirectoryObjectID in the Identity parameter.
   6. Optimized latency of first V2 Cmdlet call. (Lab results show first call latency has been reduced from 8 seconds to ~1 seconds. Actual results will depend on result size and Tenant environment.)

v1.0.1 :
   1. This is the General Availability (GA) version of EXO PowerShell V2 Module. It is stable and ready for being used in production environments.
   2. Get-ExoMobileDeviceStatistics cmdlet now supports Identity parameter.
   3. Improved reliability of session auto-connect in certain cases where script was executing for ~50minutes and threw "Cmdlet not found" error due to a bug in auto-reconnect logic.
   4. Fixed data-type issues of two commonly used attributed "User" and "MailboxFolderUser" for easy migration of scripts.
   5. Enhanced support for filters as it now supports 4 more operators - endswith, contains, not and notlike support. Please check online documentation for attributes which are not supported in filter string.



Version History

Version Downloads Last updated
3.4.0 2,858,682 10/10/2023
3.4.0-Preview1 1,772 9/25/2023
3.3.1-Preview1 755 9/18/2023
3.3.0 1,578,206 9/7/2023
3.3.0-Preview1 3,765 8/4/2023
3.2.0 1,166,455 6/21/2023
3.2.0-Preview4 4,402 5/26/2023
3.2.0-Preview3 4,839 4/28/2023
3.2.0-Preview2 4,363 3/20/2023
3.2.0-Preview1 2,665 2/27/2023
3.1.0 1,952,072 1/9/2023
3.1.0-Preview2 1,765 12/19/2022
3.1.0-Preview1 1,467 12/5/2022
3.0.1-Preview1 1,750 11/14/2022
3.0.0 6,167,841 9/19/2022
2.0.6-Preview8 3,920 9/9/2022
2.0.6-Preview7 1,494,898 8/13/2022
2.0.6-Preview6 45,082 5/20/2022
2.0.6-Preview5 47,295 3/17/2022
2.0.6-preview4 3,349 1/13/2022
2.0.6-Preview3 11,771 10/20/2021
2.0.5 (current version) 7,119,013 5/11/2021
2.0.5-Preview2 634 4/30/2021
2.0.5-Preview1 933 4/21/2021
2.0.4 498,102 2/5/2021
2.0.4-Preview9 2,052 1/19/2021
2.0.4-Preview8 255 1/4/2021
2.0.4-Preview6 23,252 11/6/2020
2.0.4-Preview2 105,441 9/22/2020
2.0.3 521,927 9/21/2020
2.0.3-Preview 8,829 6/30/2020
1.0.1 259,737 6/3/2020
0.4578.0 518,551 4/16/2020
0.4368.1 23,391 3/30/2020
0.3582.0 39,347 2/10/2020
0.3555.1 13,878 1/22/2020
0.3374.11 11,973 1/15/2020
0.3374.10 5,476 12/27/2019
0.3374.9 17,575 11/26/2019
0.3374.4 7,711 10/31/2019
0.3374.1 813 10/25/2019
0.3374.0 619 10/22/2019
Show less