Browser Extension
PowerShell script to silently install a browser extension by ID.
Last updated
PowerShell script to silently install a browser extension by ID.
Last updated
Dev Insight: While group policy and Intune configuration profiles are the ideal way to distribute browser extensions, I needed a way to easily distribute extensions in environments without Active Directory / Intune.
This script creates the necessary registry entries for Microsoft Edge or Google Chrome to install the provided extension globally for all users of a device.
By default, the extension installation is not "forced". Each user will be able to disable or uninstall the extension for their browser profile. To prevent this, the -Force
parameter can be used.
Prerequisites: This script has no prerequisites.
Note: Browser specific versions of this script can be found in the GitHub repo.
This example installs the Microsoft Editor: Spelling & Grammar Checker extension in Microsoft Edge for all users. When installed, users will be prompted to enable the extension.
This example force installs the Google Docs Offline extension in Google Chrome for all users. Users will not be able to disable or uninstall the extension.
-ID
The ID of the browser extension to be installed.
-Chrome
Used to specify that the extension ID provided is a Google Chrome browser extension. Either this or the -Edge
parameter must be used.
-Edge
Used to specify that the extension ID provided is a Microsoft Edge browser extension. Either this or the -Chrome
parameter must be used.
-Force
When used, the provided extension will be added to the force installed extension list for the designated browser. Users will not be able to disable or uninstall the extension.