How to Install Exchange Online PowerShell Module in Windows 11?

Follow the step-by-step instructions to get this done

Reading time icon 2 min. read

Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team Read more

Key notes

  • The first step is to check or install Windows PowerShell ISE to be installed on your computer. If not, you can download it from the Microsoft Store.
  • Also, you must run PowerShell ISE with admin privileges to get the work done hassle-free.
install exchange online powershell module

Whether you want to manage a mailbox, distribution groups, calendar & contact items, or permissions, the Exchange Online PowerShell module is helpful.

Installing the Exchange Online PowerShell module in Windows 11 is a simple process that includes a few steps. 

Here, this blog will walk you through the steps to install it on your Windows. Let’s get started!  

What can I do to install Exchange Online PowerShell Module in Windows 11?

Before engaging in advanced troubleshooting steps, you should consider performing the following checks:

  • An Exchange Online account to connect and manage via the Exchange PowerShell module.
  • If you are running PowerShell on a version of Windows older than Windows 8 or Windows Server 2012, you need to install the Windows Management Framework 3.0 or later from the Microsoft website.
  • You must log in with administrator rights to install and run commands.
  • Also, ensure you have a reliable internet connection.

1. Set Execution Policy

Tip icon Tip
You cannot install or download scripts in PowerShell without permission. You must set some execution policies allowing us to install external scripts.
  1. Press the Windows key, type PowerShell, and click Run as administrator.Powershell -Powershell -install exchange online powershell module
  2. Type the following command to set the execution policy for PowerShell and press Enter: Set-ExecutionPolicy RemoteSignedSet-ExecutionPolicy RemoteSigned -install exchange online powershell module
  3. Type Y to press Enter to change the execution policy.

2. Install PowerShellGet module

  1. Type the following command to install the PowerShellGet and press Enter: Install-Module PowershellGet -Forcepowershell_Install-Module PowershellGet -Force-install exchange online powershell module
  2. If you get to install the NuGet provider, press Y and then Enter.
  3. Copy and paste the following command to modify the execution policy: Get-ExecutionPolicy
  4. To get the list of installed modules, use the get module cmdlet: Get-Module PowerShellGetGet-Module PowerShellGet

3. Install Exchange Online PowerShell Module

  1. Copy and paste the following command press Enter: Install-Module -Name ExchangeOnlineManagementWindowsTerminal-Install-Module-Name-ExchangeOnlineManagement-Force
  2. If prompted, press Y and then Enter.

So, these are the steps you need to follow to install the Exchange Online PowerShell module. If you want to know how to connect Exchange Online PowerShell module, check out this here.

Installing & Connecting to Exchange Online are the initial steps to set up DKIM for Microsoft 365 for your domain; read this guide to learn more.

Try them, and if you have any concerns or questions, please mention them in the comments below. We are here to help! 

More about the topics: Microsoft Exchange, Windows 11