Created
June 28, 2018 19:37
-
-
Save levi-turner/e0d9b478290e25ae49776f895b9603aa to your computer and use it in GitHub Desktop.
Installs a Chrome extension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
From: https://www.reddit.com/r/PowerShell/comments/8u0xl6/install_chrome_firefox_plugins_without_user/e1cli8p/ | |
#> | |
$regLocation = 'Software\Policies\Google\Chrome\ExtensionInstallForcelist' | |
# Each extension if you want to force install more than 1 extension needs its own key # | |
$regKey = '1' | |
# 'mpabchoaimgbdbbjjieoaeiibojelbhm' is the Extension ID, easiest way to get this is from the URL of the extension | |
$regData = 'mpabchoaimgbdbbjjieoaeiibojelbhm;https://clients2.google.com/service/update2/crx' | |
New-Item -Path "HKLM:\$regLocation" -Force | |
New-ItemProperty -Path "HKLM:\$regLocation" -Name $regKey -Value $regData -PropertyType STRING -Force | |
# If you want to force install a second Extesion | |
$regKey = '2' | |
$regData = 'bgpahgbkjdjjlophjonpeoibjmpfgkhj;https://clients2.google.com/service/update2/crx' | |
New-ItemProperty -Path "HKLM:\$regLocation" -Name $regKey -Value $regData -PropertyType STRING -Force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment