Exchange Online PowerShell module is a powerful tool that allows administrators to manage their Exchange Online environment from the command line. While the web-based Exchange Admin Center provides an easy-to-use interface for managing Exchange Online, however there some scenarios require a more efficient way and automated approach. That’s where the Exchange Online PowerShell Module comes to play, allowing you to perform tasks such as creating and managing mailboxes, setting mailbox permissions, and configuring Exchange Online settings. In this article, I’ll demonstrate how to install Exchange Online PowerShell Module on your Windows device, so you can start to managing your Exchange Online environment more efficiently.
Prerequisites
Before you can install Exchange Online PowerShell module, you’ll need to ensure that your computer meets the following requirements:
1.Supported operating system: Windows / macOS / Linux
For Windows: From Windows Server 2008 R2 to Windows 11. Some feature might not available on old version of Windows.
For macOS: macOS 10.14 Mojave / macOS 10.15 Catalina / macOS 11 Big Sur or later
For Linux: Ubuntu 18.04 LTS / Ubuntu 20.04 LTS
2.Dot NET Framework: requires at least install Microsoft .NET Framework 4.7.1 or later. Otherwise, you’ll get an “System.Runtime.InteropServices.OSPlatform” error.
3.Set the PowerShell execution policy to RemoteSigned.
Run PowerShell with elevated rights > enter Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
Installation process
After checked above prerequisites and all matched, then you may proceed with the following steps to install Exchange Online PowerShell module:
1.Open PowerShell with administrator rights > then run the following cmdlet: Install-Module -Name ExchangeOnlineManagement -RequiredVersion 3.1.0 > press enter key.
2.Type “Y” to install NuGet provider. (If you have not configured TLS 1.2, any attempts to install the NuGet provider and other packages will fail.)
3.Waiting for the installation to be completed.
Verification
1.After the installation progress were completed > enter “Connect-ExchangeOnline” to verify your installation.
2.You should received a prompt asking you to sign-in.
3.Sign-in your account with assigned either Global Administrator role or Exchange Administrator role.
4.If enabled Multi-Factor Authentication then you will have to authenticate on your phone or via text or call.
5.Once you saw below statement then you’ve already sign-in to EXO PowerShell module.
6.To view more detail regarding with TokenStatus, try run this cmdlet: Get-ConnectionInformation
Available cmdlet in the Exchange Online PowerShell module
Version 2.0.5 and earlier is known as the Exchange Online PowerShell V2 module (abbreviated as the EXO V2 module). Version 3.0.0 and later is known as the Exchange Online PowerShell V3 module (abbreviated as the EXO V3 module).
All versions of the module contain nine exclusive Get-EXO* cmdlets for Exchange Online PowerShell that are optimized for speed in bulk data retrieval scenarios (thousands and thousands of objects). The older related remote PowerShell cmdlets are still available.
The following are connection-related cmdlets:
Additional resource & reference
PowerShell Gallery | ExchangeOnlineManagement 3.1.0
About the Exchange Online PowerShell V2 module and V3 module | Microsoft Learn
Connect to Exchange Online Protection PowerShell | Microsoft Learn
Great guide! The step-by-step instructions made it easy to install the Exchange Online PowerShell module. I appreciate the troubleshooting tips as well. Thank you, AugmaStudio!