How to Install Exchange Online PowerShell Module

The Exchange Online PowerShell module is essential for managing Microsoft 365 mailboxes, compliance tasks, role assignments, transport rules, migrations, and automated scripts. If you’re administering a Microsoft 365 tenant, this module gives you access to the latest Exchange Online cmdlets with modern authentication and superior performance.

How to Install Exchange Online PowerShell Module
How to Install Exchange Online PowerShell Module

Check Requirements Before Installation

Before installing the module, confirm your system meets the minimum requirements. This prevents version errors and command failures later.

You need:

  • Windows 10/11 or Windows Server 2016+
  • PowerShell 5.1 or later
  • .NET Framework 4.7.2 or higher
  • TLS 1.2 enabled (default in modern systems)

To check your PowerShell version:

$PSVersionTable.PSVersion

If the version is 5.1 or higher, you’re good to proceed.

Set PowerShell Gallery as a Trusted Source

PowerShell downloads the module from the PSGallery repository. If your system hasn’t used it before, run this command:

Set-PSRepository -Name PSGallery -InstallationPolicy Trusted

This ensures smooth installation without trust prompts.

Install the Exchange Online Management Module

Now install the latest Exchange Online PowerShell V3 module:

Install-Module ExchangeOnlineManagement

If PowerShell prompts you with a security question, type Y and press Enter.

This installs the official module published by Microsoft.

Import the Module Into Your Session

Once installed, load the module:

Import-Module ExchangeOnlineManagement

To confirm the module is available:

Get-Module ExchangeOnlineManagement -ListAvailable

Connect to Exchange Online

After installation, you can sign in to your Microsoft 365 tenant using modern authentication.

Basic connection:

Connect-ExchangeOnline

To connect using a specific admin account:

Connect-ExchangeOnline -UserPrincipalName [email protected]

If you want to show progress during connection:

Connect-ExchangeOnline -ShowProgress $true

You will see a login window—sign in with your Microsoft 365 admin credentials.

Use Exchange Online Cmdlets

Once connected, you can run commands like:

Get-Mailbox
Get-DistributionGroup
Get-MailTrafficReport
Get-TransportRule

The V3 module provides faster, more reliable REST-based cmdlets compared to the old Remote PowerShell method.

Disconnect Your Session

Always close your session when you’re done to avoid hitting the maximum session limit:

Disconnect-ExchangeOnline -Confirm:$false

This safely releases your active connection.

How to Update the Module Later

Microsoft frequently updates EXO with new cmdlets and improvements. Update it anytime with:

Update-Module ExchangeOnlineManagement

Optional: Install Without Admin Rights

If you’re on a locked-down PC with no admin privileges, install locally for your user profile:

Install-Module ExchangeOnlineManagement -Scope CurrentUser

This installs the module without modifying system-wide paths.

Read More:

Installing the Exchange Online PowerShell module is straightforward, and once it’s set up, you gain full control over mailbox management, compliance automation, and tenant-wide email administration. Whether you’re troubleshooting mail flow or creating automated scripts, EXO V3 is the recommended and most secure method to manage Microsoft 365 Exchange Online.

Leave a Comment

Comments

No comments yet. Why don’t you start the discussion?

    Leave a Reply