skip to Main Content

Install Exchange Online PowerShell module

Some things can only be done in Exchange Online using PowerShell. With Exchange Online PowerShell, you can work remotely and manage features in the cloud. For example, create bulk mailboxes or create a specific report. Read this article to learn how to install the Exchange Online PowerShell module.

Exchange Online PowerShell module

The Exchange Online PowerShell module allows admins online access on remote computers. Once you connect to Exchange Online, you can get data, update, create, or remove objects in Microsoft 365 remotely.

In September 2022, Microsoft released version 3.0.0, which is known as the Exchange Online PowerShell V3 module (EXO V3 module).

Install Exchange Online PowerShell

We will guide you through the steps to install Exchange Online PowerShell module.

1. Set Execution Policy

First, we need to open PowerShell as administrator in Windows.

Run the below Powershell command.

Set-ExecutionPolicy RemoteSigned

You will get the following result shown below. Now you need to press Y and then press Enter.

PS C:\> Set-ExecutionPolicy RemoteSigned

Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help topic at Do you want to change the execution policy?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): Y

Warning: You must close the PowerShell window and reopen it to save the changes.

2. Install PowerShellGetModule

Open PowerShell as administrator in Windows again and run the below command.

Install-Module PowershellGet -Force

You will see the following result. If you get asked to install the NuGet provider, press Y and then press Enter.

PS C:\> Install-Module PowershellGet -Force

NuGet provider is required to continue
PowerShellGet requires NuGet provider version '' or newer to interact with NuGet-based repositories. The NuGet provider must be available in 'C:\Program Files\PackageManagement\ProviderAssemblies' or
'C:\Users\administrator.EXOIP\AppData\Local\PackageManagement\ProviderAssemblies'. You can also install the NuGet provider by running 'Install-PackageProvider -Name NuGet -MinimumVersion -Force'. Do you want PowerShellGet to install
and import the NuGet provider now?
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): Y

3. Install Exchange Online Management Module

Run the below command to install Exchange Online Management Module.

Install-Module -Name ExchangeOnlineManagement

You will see the below result on your screen. Press Y followed by Enter.

PS C:\> Install-Module -Name ExchangeOnlineManagement

Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its
InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): Y

Connect to Exchange Online PowerShell V3

In this step, we will connect to Exchange Online with PowerShell.

Run the below command in PowerShell.

Connect-ExchangeOnline -UserPrincipalName

The sign in to your account window appears, where you can enter the password and click Sign in.

Install Exchange Online PowerShell module

If you have MFA enabled, you will get a verification code sent as a text message or to your Authentication app on your phone. If your MFA is disabled, you will not do anything here.

Now you must go back to the PowerShell window, where you will see this text.

This V3 EXO PowerShell module contains new REST API backed Exchange Online cmdlets which doesn't require WinRM for Client-Server 
communication. You can now run these cmdlets after turning off WinRM Basic Auth in your client machine thus making it more secure.

Unlike the EXO* prefixed cmdlets, the cmdlets in this module support full functional parity with the RPS (V1) cmdlets.

V3 cmdlets in the downloaded module are resilient to transient failures, handling retries and throttling errors inherently.

However, REST backed EOP and SCC cmdlets are not available yet. To use those, you will need to enable WinRM Basic Auth.

For more information check
PS C:\>

If you don’t want to see this information and new commands, then you can use this below.

Run this command below to hide the text banner.

Connect-ExchangeOnline -UserPrincipalName -ShowBanner:$false

That’s it! You installed the Exchange Online PowerShell module successfully.


You managed to install Exchange Online PowerShell module. The next step is to connect to Exchange Online with PowerShell, whether you have MFA enabled or not. After verifying, you can use the new commands in PowerShell.

Did you enjoy this article? You may also like Enable message recall in Exchange Online. Don’t forget to follow us and share this article.

The o365info Team

The o365info Team

This article was written by our team of experienced IT architects, consultants, and engineers.

This Post Has 0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *