Exchange Online PowerShell crashes at sign-in (WAM broker)
Connect-ExchangeOnline crashes or hangs at sign-in. Turn off the WAM broker and use PowerShell 7.
Draft. The fix is known and correct, but we're still writing up the full step-by-step.
Symptom
Connect-ExchangeOnline crashes, hangs or throws a broker error during sign-in.
Fix
Turn off the Web Account Manager (WAM) broker and use browser sign-in:
Connect-ExchangeOnline -DisableWAM
Use PowerShell 7 for Exchange Online work. Mixing Windows PowerShell 5.1 with recent module versions causes many of these problems.
This guide is being expanded with full steps.
Seeing this in your environment?
We can check for this, and everything around it, as part of an audit.