Cause:
Check Installed Module Versions in PowerShell:
Get-Module -Name ExchangeOnlineManagement
Get-Module -Name Microsoft.Graph
Remove Existing Modules (If Necessary):
Uninstall-Module -Name ExchangeOnlineManagement -Force
Uninstall-Module -Name Microsoft.Graph -Force
Install Correct Module Versions:
- You can choose to install either version 1.25 or 1.27 of the Microsoft.Graph module:
Install-Module -Name ExchangeOnlineManagement -RequiredVersion 3.2 -Force
Install-Module -Name Microsoft.Graph -RequiredVersion 1.25 -Force