The Exchange Online PowerShell module

Many Exchange Online settings, such as mailbox permissions, forwarding or attachment size, are quickest to manage with PowerShell. For that you use the ExchangeOnlineManagement module. This article shows how to install it, how it differs from older versions and how to make your first connection.

Install the module

  1. Open PowerShell 7 or Windows PowerShell 5.1.
  2. Type: Install-Module -Name ExchangeOnlineManagement -Scope CurrentUser
  3. Confirm the PSGallery prompt.

Check the version with Get-Module ExchangeOnlineManagement -ListAvailable. Update with Update-Module ExchangeOnlineManagement.

Installing the ExchangeOnlineManagement module

What's different from before?

Connect

Connect-ExchangeOnline -UserPrincipalName admin@contoso.com

You sign in through a window with MFA. More details, including unattended scripts, in connect to Exchange Online PowerShell with MFA.

A few examples

Done? Disconnect with Disconnect-ExchangeOnline. See also mailbox permissions.

Read also

Connect to Exchange Online PowerShell with MFA or a certificate
Set up Full Access, Send As and Send on Behalf in Exchange Online
Install and use the Microsoft Teams PowerShell module

Nederlandstalige versie: De Exchange Online PowerShell-module (ExchangeOnlineManagement) installeren


More in English