r/PowerShell • MVP, Community Blogger • 1d ago

News Microsoft Graph PowerShell SDK V2.41 Finally Fixes Assembly Clash

The Microsoft Graph PowerShell SDK has long been plagued by assembly clashes that meant it couldn’t be used in the same session as other Microsoft 365 modules. After Microsoft engineering groups looked at the problem for 18 months, a solution was found by MVP Stephen van Rooij and is now available in V2.41. Apart from an issue with old PowerShell V7 versions (which affects Azure Automation runtime environments), the fix looks solid and the SDK can once again be loaded into PowerShell sessions alongside the Exchange Online and Teams modules.

https://office365itpros.com/2026/10/05/microsoft-graph-powershell-sdk-fix/

40 Upvotes

14 comments sorted by

View all comments

2

u/eggeto 1d ago

If you use thé API, you don't have that kind of problems. Just saying 🙂

15

u/Unlikely_Tie1172 MVP, Community Blogger 23h ago

Which is fine for professional developers. The SDK is really targeted at Microsoft 365 tenant admins (such as the folks who have used the Exchange module for years) to automate common admin processes without having to worry about token acquisition and refresh, pagination, and throttling (mostly), all of which need to be taken care of when using raw Graph API calls.

1

u/AdeelAutomates 18h ago

Unrelated, but I just want Exchange Online to get a proper API that exposes everything available through the Exchange module, not just bits and pieces the current exchange API offers.

Graph has made the rest of M365 so much easier to automate. Exchange still feels like the odd one out.

1

u/Unlikely_Tie1172 MVP, Community Blogger 17h ago

The Exchange team has been asked for this capability for many years. They haven't delivered, but to be fair, they have been preoccupied in getting customers off the EWS API. That's why we now have the mailbox import-export Graph API and why some of the gaps in the mailbox, calendar, contacts, etc. API have been addressed. And I guess I could add the Exchange admin API to the list, but that's just a wrapper around PowerShell cmdlets that exists to help get some ISVs off EWS.

1

u/justinwgrote 16h ago

Actually if you inspect the traffic, everything in the Exchange Online modules does go thru a REST API now, albeit a clunky one. It literally sends the command and arguments in the POST and then gets CLIXML back :)