Skip to main content

Configure Connection

Microsoft Exchange Online guide

Follow this focused guide to configure and validate Microsoft Exchange Online in NIM.

  1. Run the following PowerShell command on the NIM server to install the required module:

    if (!(Get-Module -ListAvailable -Name 'ExchangeOnlineManagement')) {
    [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

    if (!(Get-PackageProvider -ListAvailable | Where-Object { $_.Name -eq 'NuGet' }) -or
    (Get-PackageProvider -Name 'NuGet').Version -lt '2.8.5.201') {
    Install-PackageProvider -Name 'NuGet' -MinimumVersion '2.8.5.201' -Force
    }

    Install-Module -Name 'ExchangeOnlineManagement' -Force -AllowClobber
    }
  2. Configure the app service account