Synchronization with Folder Sync 1.14 fails for all Office 365 mailboxes with error : Error connecting to Exchange PowerShell

book

Article ID: 100053730

calendar_today

Updated On:

Description

Error Message

2022-08-09 11:33:32.537 [(T04) VSLLC:CustomSynch:AsProcess00:JobQueue(1459)] - Wrote eventlog: Error [10091] Error connecting to Exchange PowerShell.

Cause

ExchangeOnlineManagement PowerShell module is not installed on the server where Folder Sync 1.14 is installed. This module is required for Folder Sync to connect to Office 365 tenant using Modern Authentication. 

This can be seen in the Foldersync.yyyy-mm-dd.00.log.

2022-08-09 00:00:26.304 [(T03) VSLLC:CustomSynch:Worker00:Schedule(0)] - Begin executing command: Get-Module -Name 'ExchangeOnlineManagement'
2022-08-09 00:00:26.304 [(T03) VSLLC:CustomSynch:Worker00:Schedule(0)] - Finished executing command.
2022-08-09 00:00:26.304 [(T03) VSLLC:CustomSynch:Worker00:Schedule(0)] - Required Powershell Cmdlet failed to import: ExchangeOnlineManagement
2022-08-09 00:00:26.320 [(T03) VSLLC:CustomSynch:Worker00:Schedule(0)] - Wrote eventlog: Error [10106] A required PowerShell module has failed to be imported.
Powershell module: ExchangeOnlineManagement has not been imported.
Failed sync of Online Exchange mailbox list.

Resolution

Install the ExchangeOnlineManagement module on the server where Folder Sync 1.14 is installed.

1. Launch PowerShell as an Administrator.
2. Run the command 'Install-Module ExchangeOnlineManagement'.

Issue/Introduction

Folder Synchronization with Folder Sync 1.14(1.95.7815) fails for all Office 365 mailboxes with error : Error connecting to Exchange PowerShell.