Deprecation of Remote PowerShell (RPS) for New Exchange Online Tenants
Published Mar 07 2023 08:25 AM 19.5K Views

Update 3/27/2023: For more information on this subject please see our newer blog post.

We previously announced the general availability of REST-based Exchange Online PowerShell v3 module (September 2022) and the deprecation of Remote PowerShell (RPS) Protocol (December 2022).

Today, we are announcing that starting April 1, 2023, we will start blocking RPS connections for all tenants created on or after April 1, 2023. After April 1, 2023, new tenants will not be able to use RPS when connecting to Exchange Online and will have to use the v3 module with REST cmdlets instead.

The overall RPS deprecation plan we announced in December applies to all Exchange Online customers connecting with RPS. We recommend that all customers move to the v3 module, which is more secure and more reliable than the older PowerShell modules.

Connect-IPPSSession (for Security & Compliance cmdlets) will remain RPS-based and is not affected by this deprecation.

What are the next steps?

If you are using New-PSSession to establish an RPS connection: 

  • Install the latest Exchange Online Management v3 module from here.
  • Use Connect-ExchangeOnline instead of New-PSSession to establish connection.

If you have installed any module earlier than v3:

  • Uninstall previous versions of ExchangeOnlineManagement module by running "Uninstall-Module ExchangeOnlineManagement" from an elevated (admin) command prompt.
  • Install the latest Exchange Online Management v3 module from here.
  • Discontinue all use of the UseRPSSession parameter.

There are some new features and minor breaking changes in the v3 module. Please keep them in mind while testing any scripts with v3 module. You can read more about these changes here.

We heard your concerns related to deprecation timelines. We will soon release a tool to allow tenant admins to request an extension to use RPS for a little longer. We will keep you posted.

We are excited to provide you with a more secure and performant environment, and we remain committed to our journey to empower you with the most modern features and tools. If you have questions/feedback, please leave comments here or email us at RPSdeprecation@service.microsoft.com.

Exchange Online Manageability Team

9 Comments
Co-Authors
Version history
Last update:
‎Apr 10 2023 02:09 PM
Updated by: