How to Fix the Unsupported Browser Error in Exchange Online PowerShell
Question details
Users encounter an unsupported browser error when running the Connect-ExchangeOnline command in PowerShell.

- Product
- Exchange Online PowerShell
- Device & OS
- not provided
- Scenario
- Attempting to connect to Exchange Online via PowerShell using modern authentication.
- Observed behavior
- PowerShell opens an outdated embedded browser or Internet Explorer instead of the default modern browser, failing the authentication process with an unsupported browser message.
Ensure that Microsoft Edge is updated to the latest version and temporarily verify that it is set as your default system browser.
Pre-authenticate via Microsoft Edge
Bypass the embedded legacy browser by logging into your account directly in Microsoft Edge before running the PowerShell command.
The Connect-ExchangeOnline module sometimes incorrectly triggers legacy Internet Explorer components for its authentication popup. By initiating an active session in a supported browser first, PowerShell can often piggyback on the existing modern authentication token.
Launch the latest version of Microsoft Edge on your computer.
Navigate to the official Microsoft 365 sign-in page and securely log in using your Exchange administrator credentials.
Close the embedded PowerShell authentication window that is currently displaying the 'unsupported browser' error.
Return to your PowerShell window and execute the Connect-ExchangeOnline command again. The system should now detect your active Edge sign-in session.

Use Device Code Authentication
Force the authentication process to happen entirely outside of the PowerShell embedded browser using a device code.
Looking for a Reliable and Free Office Suite?
While troubleshooting Exchange Online and PowerShell issues can be highly technical, managing your everyday documents shouldn't be. WPS Office offers a completely free, lightweight, and user-friendly alternative to Microsoft Office.
- 1. Download the installer: Visit the official WPS Office website and click the free download button.
- 2. Install the application: Run the downloaded installer file and follow the simple on-screen instructions.
- 3. Start creating: Open WPS Office to instantly view, edit, and create Word, Excel, PowerPoint, and PDF documents.

Frequently Asked Questions
Why does Connect-ExchangeOnline open Internet Explorer instead of Edge?
Some older versions of the Exchange Online Management module or specific Windows configurations rely on legacy embedded web controls (.NET WebBrowser control) that default to the Internet Explorer engine, even if Edge is your default browser.
How do I update the Exchange Online Management module?
Open an elevated PowerShell window (Run as Administrator) and execute the command: Update-Module -Name ExchangeOnlineManagement. This ensures you have the latest Microsoft fixes for modern authentication.
Will changing my default Windows browser fix this PowerShell error?
Not always. Because the error is often tied to the hardcoded web components within the PowerShell module's authentication library, simply changing your default browser to Edge or Chrome in Windows settings might not prevent the legacy popup from appearing.




