Skip to the article
Browser Rules Help
Help centre
Browser Rules help

Set up Browser Rules in Chrome and Edge, managed from the admin console.

Using the admin console / Getting started

Deploy: the enrolment key by script

A script that gives the extension your enrolment key, for Intune platform scripts, Configuration Manager or remote management tools.

Install the extension itself with your device management's own policy: in Intune, a configuration profile (see Install for your organisation); elsewhere, each browser's own force-install policy, as on the Group Policy page. The key is the one setting the Intune settings catalog can't deliver, as it's an extension's own policy, so it's a registry value, which this script writes.

In Intune, add it under Devices, Scripts and remediations, Platform scripts, with Run this script using the logged on credentials set to No and Run script in 64 bit PowerShell Host set to Yes. The script isn't signed, so set Enforce script signature check to No, or sign it yourself. It can be run again safely.

browser-rules-enrol.ps1
# Browser Rules: give the extension your organisation's enrolment key.
# Run as SYSTEM or an administrator: it writes to HKLM, which users can't change.
$id = "bjhkclliijjffonmofmimpebcbigigem"
$key = "BR-ABCDE-FGHJK-LMNPQ-RSTUV"

foreach ($browser in @("Google\Chrome", "Microsoft\Edge")) {
  $policy = "HKLM:\SOFTWARE\Policies\$browser\3rdparty\extensions\$id\policy"
  New-Item -Path $policy -Force | Out-Null
  New-ItemProperty -Path $policy -Name "enrolmentKey" -Value $key -PropertyType String -Force | Out-Null
}

Optional: to show each computer's name on the Browsers page, set deviceName too. See Name devices.

Need more help? Email us.[email protected]