Installing the ExchangeOnlineManagement Module
About this task
Before you begin
Procedure
- To install the module, open PowerShell as an Administrator.
-
Run the following command:
Install-Module -Name ExchangeOnlineManagement -RequiredVersion 3.4.0 -Scope AllUsers
Important: If a newer version of ExchangeOnlineManagement is already installed, uninstall it before proceeding. Use the following command:Uninstall-Module -Name ExchangeOnlineManagement
-
Respond
A
(Yes to All) prompts. The module installs via PowerShell. -
After the installation, verify that the module directory is included in the
PSModulePath
environment variable:- Run the following command to locate the installation path:
Get-Module -ListAvailable -Name ExchangeOnlineManagement
- Run the following command to locate the installation path:
-
If the module path is not listed in the
PSModulePath
, follow these steps:- Open the Start menu and search for Environment.
- Select Edit the system environment variables.
- In the System Properties window, select Environment Variables .
- In the Environment Variables window, find
PSModulePath
in the System Variables section and then select Edit. - Check if the module path is listed. If not, add the installation path to the list.
Results
PSModulePath
environment variable, ensuring it loads
correctly.