Recently I published a few articles related to the new Microsoft Edge Chromium browser. I described how to deploy and manage the new Edge browser and how to setup a Windows 10 kiosk device based on the new browser. But I didn`t describe in these articles how to set Edge Chromium as default browser on Windows 10, so let`s have a look how this can be done using Microsoft Intune.
Setting Edge as default browser can be accomplished by associating the related file types and protocols to the Edge browser. Since Windows 10 1703 we have the option with Microsoft Intune to set default file type and protocol associations using Policy CSP. The policy and related information we need to configure this can be found on Microsoft Docs. Here we find a part of the OMA-URI (ApplicationDefaults/DefaultAssociationsConfiguration) we need in the Intune profile and is described how to create the input for that custom profile.
The steps we need to take to get this configured are:
- Set Edge Chromium as default browser
- From an elevated prompt, run “dism /online /export-defaultappassociations:appassoc.xml”
- Edit the XML file to your needs
- Take the XML output and put it through your favorite base64 encoder app
- Paste the base64 encoded XML into the Intune Custom Configuration profile
Make sure you have set Edge Chromium as default browser.
To generate the XML file with the app associations, open an elevated command prompt and run this command:
Dism /Online /Export-DefaultAppAssociations:”DefaultAssociationsConfiguration.xml”
Open the XML file with a text editor. Here you will find all kind of file type associations, remove the lines of all other file types. Only the four lines related to Edge, as shown below, are needed. Save the XML file.
The next step is to put the XML file in a base64 encoder. Just Google and you will find encoder like Base64 I used.
Put the content of the XML file in the first box and hit Encode.
We need the output later in the Custom Intune Configuration profile
Create a Custom configuration profile
To deploy settings using a Policy CSP, we need to create a Custom configuration profile in Microsoft Intune.
- Sign-in to the Endpoint Manager portal
- Browse to Devices – Windows
- On the Configuration Profiles tab click Create profile
- Give the configuration profile a Name
- Enter a Description (optional)
- Choose Windows 10 as Platform
- Choose Custom as Profile type
- Click the Settings tab
- Click Add
Enter below information to the policy;
Data Type: String
Value: The output from the Base64 encoder
Click OK twice and click Create.
Assign the policy to a security group.
As soon as the new policy is synced to the Windows 10 device, it`s needs a reboot of the device before the configuration becomes active.
You can confirm if the setting is active in the Settings. In the Apps section, on the Default apps tab you will find Microsoft Edge set as default Web browser.