How to reset a Protocol Handler in Microsoft Edge or Google Chrome

If you’re using a Chromium-based browser such as Microsoft Edge or Google Chrome, you’ve probably seen SharePoint, OneDrive, and other Microsoft 365 services asking permission to open certain links in their associated apps — for example, the OneDrive Sync client.

Enabling a protocol handler for OneDrive Sync client
Enabling a protocol handler for OneDrive Sync client

A protocol handler is a rule that tells the system or browser which app should open when a specific link type (protocol) is clicked. For example, mailto opens your mail app, msteams launches Microsoft Teams, and odopen opens the OneDrive Sync client.

Enabling protocol handler for Microsoft Teams
Enabling a protocol handler for Microsoft Teams

Recently, I needed to reset this choice for OneDrive. A quick search online (and a few AI-generated answers) suggested checking the protocol handler settings in Edge or Chrome. That used to work in the past, but not anymore. It seems Microsoft has removed the setting in Edge, and the version in Chrome is now limited.

  • In Microsoft Edge for Business (version 141), I found no protocol handler setting, neither in Settings nor under site permissions.
  • In Google Chrome (version 141), the setting still exists but doesn’t list any sites or protocols. It’s also not available as a site permission.
Protocol handlers in Google Chrome
Protocol handlers in Google Chrome

So how do you reset a protocol handler now?
These settings are stored locally in a file called Preferences within your browser profile. You can edit this file manually or script it.

The file paths on Windows are as follows:

  • Microsoft Edge
    %AppData%\Local\Microsoft\Edge\User Data\Default\Preferences
    or
    %AppData%\Local\Microsoft\Edge\User Data\<Profile>\Preferences

  • Google Chrome
    %AppData%\Local\Google\Chrome\User Data\Default\Preferences
    or
    %AppData%\Local\Google\Chrome\User Data\<Profile>\Preferences

If you’re using multiple browser profiles (like I do), you’ll need to identify which one belongs to your account. You can do this easily with PowerShell, since the Preferences file contains the account information. But it’s difficult to read in a text editor. Just change the profile number until you find the one with your email address. I found profile 3 for my case.

PowerShell
# With PowerShell 7
$EdgeProfilePath = "$Env:LOCALAPPDATA\Microsoft\Edge\User Data\Profile 3\Preferences"
$EdgeProfile = Get-Content -Path $EdgeProfilePath -Raw | ConvertFrom-Json -AsHashtable
$EdgeProfile.account_info.email # Checking if this is your correct browser profile


Once you’ve found the profile, all protocol handler settings are stored under the protocol_handler node in the Preferences file. For OneDrive, the relevant entry is odopen.

Protocol handlers from your browser profile
Protocol handlers from your browser profile

You can delete the corresponding node to reset a specific URL or protocol.
Make sure the browser profile is closed before editing the Preferences file; otherwise, Edge will overwrite your changes.

PowerShell
$ProtocolHandlerUrl = "<YourProtocolHandlerUrlToRemove>"
$EdgeProfile.protocol_handler.allowed_origin_protocol_pairs.Remove($ProtocolHandlerUrl)

# Save the updated Preferences file to reset the protocol handler
$EdgeProfile | ConvertTo-Json -Depth 20 | Set-Content -Path $EdgeProfilePath -Encoding UTF8


Now reopen your Edge profile and try syncing OneDrive again. You’ll see the protocol handler prompt once more, which means you successfully reset the OneDrive protocol handler configuration.

Share
Avatar photo

Tobias Asböck

Tobias is a Senior System Engineer with more than 10 years of professional experience with Microsoft 365 products such as SharePoint Online, SharePoint Premium, OneDrive for Business, Teams Collaboration, Entra ID, Information Protection, Universal Print, and Microsoft 365 Licensing. He also has 15+ years of experience planning, administering, and operating SharePoint Server environments. Tobias is a PowerShell Scripter with certifications for Microsoft 365 products. In his spare time, Tobias is busy with updates in the Microsoft 365 world or on the road with his road bike and other sports activities. If you have additional questions, please contact me via LinkedIn or [email protected].

Leave a Reply

Your email address will not be published. Required fields are marked *