Register-ChromiumExtension
Description
Adds one or more extensions to popular Chromium-based browsers.
Requirements
The Extension URL ID must be obtained from the store.
Usage
- Verifies and adds an MDM policy if one doesn't exist.
- Determines if the app is currently being blocked and removes it if present.
- Adds the extension to the target browser(s) force list.
.\\Register-ChromeExtension.ps1 -ExtensionID 'kgjfgplpablkjnlkjmjdecgdpfankdle', 'cjpalhdlnbpafiamejdnhcphjbkeiagm'
This command will add uBlock Origin and Zoom Meetings to the registered extensions in the force list for all popular Chromium-based browsers.
.\\Register-ChromeExtension.ps1 -Target 'Chrome' -ExtensionID 'kgjfgplpablkjnlkjmjdecgdpfankdle', 'cjpalhdlnbpafiamejdnhcphjbkeiagm'
This command will add uBlock Origin and Zoom Meetings to the registered extensions in the force list for just the Chrome browser.
Parameters
| Parameter | Alias | Required | Default | Type | Description |
|---|---|---|---|---|---|
ExtensionID | True | String[] | Holds the URL ID values for the desired extensions to install. | ||
Target | False | Defaults to applying settings to all available targets | String[] | Designates the target browser to add the extension to. |
Output
The output will be logged in the following file:
.\\Register-ChromiumExtension-log.txt