Skip to main content

Configure Connection

Microsoft Exchange Online guide

Install the Exchange Online PowerShell module, prepare app-only authentication, and configure and test the connection in NIM.

Before you startDirect link to Before you start

The connector uses the ExchangeOnlineManagement PowerShell module and certificate-based app-only authentication. Follow Microsoft's app-only authentication setup to prepare the Entra application, certificate, and permissions.

NIM requires Application ID, Organization, and Certificate. Organization must be the tenant's primary .onmicrosoft.com domain.

Install ExchangeOnlineManagementDirect link to Install ExchangeOnlineManagement

Run the following PowerShell script on the NIM server to install the required module if it is not already present:

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
}

Confirm that the installed module is available to the Windows account running the NIM service.

Step 1 of 4