Is there any script to change default browser from IE to Edge chromium

Shreyas Kale 61 Reputation points
2021-06-05T06:31:10.57+00:00

Is there any PowerShell or any other script that will change default browser from IE to Edge or chrome in background..? We don't want to set default browser through GPO because we want to give user choice to set default browser with their choice. We want to push the script using SCCM and then user will run the script depending on their browser choice.
For example - If user wants to set Edge chromium as default browser then user will double click on Edge chromium script which will be pushed already to user system using sccm and then default browser will be changed to Edge chromium.

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,628 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue-MSFT 41,691 Reputation points Microsoft External Staff
    2021-06-08T03:34:32.5+00:00

    Hi,

    You can look at the below registry values
    HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice\Progid
    HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice\Progid

    However, you cannot set the default browser by changing the values in Windows 10 because they are protected with the hash.

    Best Regards,
    Ian Xue

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.