Installing the ExchangeOnlineManagement Module

About this task

The first step in Microsoft Office 365 email integration is to install the ExchangeOnlineManagement module.

Before you begin

Users must use PowerShell 5 when installing the ExchangeOnlineManagement module.

Procedure

  1. To install the module, 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. Respond A (Yes to All) prompts. The module installs via PowerShell.
    Module installation via PowerShell
  4. After the installation, verify that the module directory is included in the PSModulePath environment variable:
    1. 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, follow these steps:
    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 .
    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. The module path is confirmed in the PSModulePath environment variable, ensuring it loads correctly.

What to do next

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