soteria-security / 365Inspect

A PowerShell script that automates the security assessment of Microsoft 365 environments.
https://soteria.io/solutions/soteria-inspect/
MIT License
576 stars 109 forks source link

Compatibility Issues between Powershell Modules #95

Closed mihanf closed 2 months ago

mihanf commented 3 months ago

I made a fresh install of the necessary Powershell Modules. With the latest Exchange Online Management Module (3.5.0) installed I got an Error when the Script tries "Connect-MgGraph". The Error was like "Dependency not found". After installing the prior EXO Module 3.4.0 it works as expected.

ThoughtContagion commented 3 months ago

Hi there @mihanf,

Thank you for reporting this issue. Unfortunately, this is an issue with the Microsoft.Identity.Client dependency in both the Exchange PowerShell module and Microsoft Graph PowerShell modules and appears to be a recurring problem with updates to either or both modules.

Previous example: Connect-MgGraph Interactive not working if connected at first to Exchange Online PS