script to install a Chrome extension?
How does one deploy Chrome extensions these days (Tampermonkey)? I've tried the group policy registry entry from here, but nothing seems to happen. https://support.google.com/chrome/a/answer/188453?hl=en It seems like downloading the crx file is impossible these days too?
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
rockhead44
7 years ago
I use a Chrome GPO
Computer Configuration -- Administrative Templates -- Google -- Google Chrome -- Extensions
Enable both "Configure the list of force-installed apps an extensions" and "Configure extension installation whitelist"
For "Configure the list of force-installed apps an extensions" the value is
ABC;http://clients2.google.com/service/update2/crx?response=updatecheck&x=id%3ABC
For ""Configure extension installation whitelist"" the value is
ABC
ABC, of course, should be replaced by the actual extension ID
Posted by:
jszabo
7 years ago
Would that work if you aren't using active directory? I tried it with local group policy but it didn't seem to do anything. This page that talks about the registry almost works, except the extension isn't enabled: https://developer.chrome.com/extensions/external_extensions
Comments:
-
I don't know. I am deploying in an AD environment. - rockhead44 7 years ago
-
I use the registry method without any issues. Can you post your registry keys? - chucksteel 7 years ago
-
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Google\Chrome\Extensions\dhdgffkkebhmkfjojejmpbldmpobfkfo]
"update_url"="https://clients2.google.com/service/update2/crx"
Tampermonkey has a lot of extra permissions though. If I use a master_preferences file (with values from a user's manifest.json), it warns about the permissions and disables the extension:
- Read and change all your data on the websites you visit
- Display notifications
- Modify data you copy and paste
- Manage your apps, extensions, and themes - jszabo 7 years ago-
I haven't used that method for installing extension, I use the policy method instead. I'm not sure if that would be any different, however, due to the permissions issues you are experiencing:
https://www.chromium.org/administrators/policy-list-3#ExtensionInstallForcelist - chucksteel 7 years ago -
Oh, I got the impression somewhere that if the computer wasn't joined to a domain, the chrome policy registry keys wouldn't work. - jszabo 7 years ago
-
https://bugs.chromium.org/p/chromium/issues/detail?id=346386 -- "Note: starting with Chrome 28, policies are loaded directly from the Group Policy API on Windows. Policies manually written to the registry will be ignored. See http://crbug.com/259236 for details." I confirmed this. gpedit.msc works but not regedit. So how do you script that? Plus I believe the powershell group policy module doesn't work with local group policy. - jszabo 7 years ago
-
Are your computers joined to a domain? - jszabo 7 years ago
-
Some are, and some aren't. I set the policies via the registry keys so it doesn't matter. - chucksteel 7 years ago