This is a Public Preview release of Exchange Online PowerShell V2 module.
Please check the documentation here -
For issues related to the module, contact Microsoft support.

Minimum PowerShell version


This is a prerelease version of ExchangeOnlineManagement.
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.6-Preview7 -AllowPrerelease

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-ConnectionInformation Get-EXOCasMailbox Get-EXOMailbox Get-EXOMailboxFolderPermission Get-EXOMailboxFolderStatistics Get-EXOMailboxPermission Get-EXOMailboxStatistics Get-EXOMobileDeviceStatistics Get-EXORecipient Get-EXORecipientPermission Get-MyAnalyticsFeatureConfig Get-UserBriefingConfig Get-VivaInsightsSettings Set-MyAnalyticsFeatureConfig Set-UserBriefingConfig Set-VivaInsightsSettings


Connect-ExchangeOnline Connect-IPPSSession Disconnect-ExchangeOnline


This module has no dependencies.

Release Notes

Whats new in this release:

v2.0.6-Preview7 :
   1. Support for system-assigned and user-assigned Managed Identity from Azure VMs and Virtual Machine Scale Sets.
       - The -ManagedIdentity switch parameter, and the -Organization parameters need to be provided to indicate that a managed identity should be used. This will by default attempt to use a system-assigned managed identity.
       - For specifying a user-assigned managed identity, in addition to the parameters specified above, the AppID of the service principal corresponding to the user-assigned identity needs to be passed to the -ManagedIdentityAccountId.
   2. Get-ConnectionInformation cmdlet introduced to get the information regarding all REST-based active connections to ExchangeOnline. This is similar to the Get-PSSession cmdlet which returns information on all the remote powershell sessions in the runspace.
   3. Bug fixes in Connect-ExchangeOnline.

Previous Releases:

v2.0.6-Preview6 :
   1. Compliance with Continuous Access Evaluation(CAE). If you have any Conditional Access policy enabled for your organization, you can now use RPS and the REST-based cmdlets in addition to the EXO cmdlets.
   2. Revamped error reporting framework for the REST-based cmdlets that maintains an individual log file per connection to EXO from the same powershell instance.
   3. Bug fixes in Connect-ExchangeOnline.

v2.0.6-Preview5 :
   1. General availability of Certificate Based Authentication feature which enables using Modern Authentication in Unattended Scripting or background automation scenarios for Connect-IPPSSession.
   2. Cmdlets for creating and assigning custom nudges to users that will show in their briefing emails have been introduced. These include the cmdlets ending in *-CustomNudge, *-CustomNudgeSettings, and *-CustomNudgeAssignment. As these cmdlets are still in development, they may not yet be enabled for your tenant.
   3. The Get-OwnerlessGroupPolicy and Set-OwnerlessGroupPolicy cmdlets that are available in version 2.0.5 have been deprecated and are no longer available. You can manage ownerless Microsoft 365 Groups in the Microsoft 365 admin center.
   4. Bug fixes in Connect-ExchangeOnline and Disconnect-ExchangeOnline.

   1. Add new Feature DiscoverTryBuy in cmdlets Get-VivaInsightsSettings and Set-VivaInsightsSettings for Global/ExchangeOnline/Teams administrators to control user access of Discover Try Buy features in Viva Insights.

v2.0.6-Preview3 :
   1. This version contains all the * EXO * cmdlets along with 250 Remote PowerShell cmdlets which are REST API backed. These REST API backed cmdlets do not need PowerShell session and hence they do not need WinRM Basic Auth to be enabled and they work as-is without requiring any change in script.
   2. Use switch -RPSSession to use the default set of all ~900 RPS Cmdlets. Using RPSSession switch needs WinRM Basic Auth to be enabled on your client machine.
   3. For certain RPS Cmdlets, use switch -UseCustomRouting to route your requests directly to the required mailbox server and it may improve the performance of overall script execution. In case UseCustomRouting flag is passed, please pass the value of either of UserPrincipalName, SmtpAddress, MailboxGuid. Use this parameter as an experiment and share feedback to
       - This parameter is initially available for these 20 cmdlets and can be updated - Get-MailboxStatistics,Get-MailboxAutoReplyConfiguration,Get-MailboxMessageConfiguration,Get-MailboxPermission,Get-MailboxFolderStatistics,Get-MobileDeviceStatistics,Get-InboxRule,Get-MailboxRegionalConfiguration,Set-MailboxRegionalConfiguration,Get-UserPhoto,Set-UserPhoto,Remove-CalendarEvents,Set-Clutter,Get-MailboxCalendarFolder,Get-Clutter,Get-MailboxFolderPermission,Get-FocusedInbox,Set-FocusedInbox. For more accurate information, please check online documentation of EXO PowerShell V2 Module.

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.



Version History

Version Downloads Last updated
3.3.1-Preview1 575 9/18/2023
3.3.0 729,647 9/7/2023
3.3.0-Preview1 3,694 8/4/2023
3.2.0 1,100,207 6/21/2023
3.2.0-Preview4 4,284 5/26/2023
3.2.0-Preview3 4,593 4/28/2023
3.2.0-Preview2 4,147 3/20/2023
3.2.0-Preview1 2,580 2/27/2023
3.1.0 1,900,260 1/9/2023
3.1.0-Preview2 1,726 12/19/2022
3.1.0-Preview1 1,461 12/5/2022
3.0.1-Preview1 1,750 11/14/2022
3.0.0 5,712,260 9/19/2022
2.0.6-Preview8 3,806 9/9/2022
2.0.6-Preview7 (current version) 1,493,482 8/13/2022
2.0.6-Preview6 42,796 5/20/2022
2.0.6-Preview5 45,976 3/17/2022
2.0.6-preview4 3,321 1/13/2022
2.0.6-Preview3 11,731 10/20/2021
2.0.5 7,102,406 5/11/2021
2.0.5-Preview2 634 4/30/2021
2.0.5-Preview1 918 4/21/2021
2.0.4 496,944 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,239 11/6/2020
2.0.4-Preview2 105,033 9/22/2020
2.0.3 517,999 9/21/2020
2.0.3-Preview 8,814 6/30/2020
1.0.1 259,041 6/3/2020
0.4578.0 518,538 4/16/2020
0.4368.1 23,386 3/30/2020
0.3582.0 39,347 2/10/2020
0.3555.1 13,876 1/22/2020
0.3374.11 11,972 1/15/2020
0.3374.10 5,476 12/27/2019
0.3374.9 17,574 11/26/2019
0.3374.4 7,706 10/31/2019
0.3374.1 813 10/25/2019
0.3374.0 616 10/22/2019
Show less