Auto-installing extensions on Firefox using Intune

To build onto my previous blog post concerning ADMX ingestion in Intune to configure Mozilla Firefox settings I'm going to show you how to auto-install extensions in Firefox with Intune.

In this example I'm using the uBlock Origin extension as an example.

First you'll need to get the URL of the extension. This is different from Chrome where you just need to get the ID of the extension. The easiest way I found to do this is to open Firefox and go to the Extensions Page at Mozilla and locate the extensions you want to install. Then right-click and copy the link to the "Add to Firefox" button on the extension page. Save the link for later.



Now go to the Custom OMA-URI Settings profile in Intune and add a new row. Configure the fields as follows:

Name:
Extensions_Install

OMA-URI (case sensitive): 
./Device/Vendor/MSFT/Policy/Config/Firefox~Policy~firefox~Extensions/Extensions_Install

Data type (String value)*:
<enabled/>
<data id="Extensions" value="1&#xF000;INSERT LINK COPIED ABOVE HERE"/>




In my example for uBlock Origin my Data type value would be this:

<enabled/>
<data id="Extensions" value="1&#xF000;https://addons.mozilla.org/firefox/downloads/file/3361355/ublock_origin-1.21.2-an+fx.xpi?src=featured"/>

The Unicode character 0xF000; in its HTML encoded form (&#xF000;) is used as the string separator in the value of the Extensions field. So "1&#xF000;https://addons.mozilla.org/firefox/downloads/file/3361355/ublock_origin-1.21.2-an+fx.xpi?src=featured" is two separated strings between the "1" and "https://addons.mozilla.org/firefox/downloads/file/3361355/ublock_origin-1.21.2-an+fx.xpi?src=featured" and looks like this when added to the registry:



If you wanted to add two extensions it would look like this:

<data id="Extensions" value="1&#xF000;https://link-to-extension&#xF000;2&#xF000;https://link-to-extension"/>


Comments

Post a Comment

Popular posts from this blog

Disable DNS over HTTPS in Firefox using Intune

Moving Applocker control from Group Policy to Intune