Discovery/Sync o365 - EXO 3.9 breaks poweshell calls

Created: 2025-12-01 16:21:17
Modified: 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).

  1. Goto the Unitsync installation folder.
    UnitySync/bin

  2. Save a copy of o365.ps1 as o365.ps1-orig

  3. Edit o365.ps1

  4. 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.

Knowledgebase

Directory
  1. Directify - Self Service

  2. UnitySync - Sync
Password
  1. emPass - Sync
Obsolete
  1. Profiler
  2. SimpleSync