Installing the ExchangeOnlineManagement Module

About this task

Use this procedure to install and configure the ExchangeOnlineManagement PowerShell module. This module is required to enable Microsoft Office 365 email integration. The task includes installing the module, verifying the installation path, and updating the PSModulePath environment variable if necessary.
Note: In a multi-Deployment Server (DS) environment, you must install PowerShell 5 and the ExchangeOnlineManagement module on each DS server.

Before you begin

Make sure you are using PowerShell 5 when installing the ExchangeOnlineManagement module.

Procedure

  1. Open PowerShell as an administrator.
  2. 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
  3. Enter A to accept all prompts. The module installs via PowerShell.
    Module installation via PowerShell
  4. After 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
  5. If the module path is not listed in the PSModulePath, update it:
    1. Open the Start Menu and search for Environment.
    2. Select Edit the system environment variables.
    3. In the System Properties window, select Environment Variables.
      Selecting Environment Variables in the System Properties window.
    4. In the Environment Variables window, find PSModulePath in the System Variables section and then select Edit.
      Editing the PSModulePath in the Environment Variables window.
    5. Check if the module path is listed. If not, add the installation path to the list.

Results

The ExchangeOnlineManagement module is installed and configured for use in your PowerShell session.

What to do next

Continue with the steps for Registering the App in Azure AD.