Discovery/Sync o365 - EXO 3.9 breaks poweshell calls
Created: 2025-12-01 16:21:17Modified: 2025-12-12 09:53:59
Tags: Office 365 Troubleshooting
Recently released Microsoft EXO v3.9 breaks powershell calls used by Discovery and Sync. To fix this, a modification must be made to Unitysync’s o365.ps1 file.
(This change will be added to the next Unitysync version).
Goto the Unitsync installation folder.
UnitySync/binSave a copy of o365.ps1 as o365.ps1-orig
Edit o365.ps1
Change the following 2 lines, adding -DisableWAM to the end of the line.
Line 58:
Connect-ExchangeOnline -ExchangeEnvironmentName $environ -ShowBanner:$false -ShowProgress $false -Credential $UserCredential -PSSessionOption $proxysettings -DisableWAM'
Line 80: Connect-ExchangeOnline -ShowBanner:$false -ShowProgress $false -Credential $UserCredential -PSSessionOption $proxysettings -DisableWAM`
Save the changes and run Discovery/Simulation to confirm.