How to programatically refresh chrome policy 'ExtensionInstallBlacklist' on windows?
Asked Answered
E

0

3

I need to update the Chrome policy 'ExtensionInstallBlacklist' from a desktop application on windows. Im already able to modify the policy through the registry by adding values to HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome\ExtensionInstallBlacklist.

However, to have an effect in chrome, I need to manually visit chrome://policy/ within Chrome and hit the "refresh policies"-button.

What I already tried:

  • According to this other question on SO, one can use gpupdate /force to trigger a reaload of Chrome policies. I tried gpupdate and gpupdate /force, both inside an admin cmd and inside a normal user cmd - no effect.

Is there another way to programatically tell Chrome to reload the policies or did I miss something with the gpupdate-solution?

EDIT:

These are the changes I've made:

  • Adding the key value pair 1:cfhdojbkjhnklbpkdaibdccddilifddb to HKEY_LOCAL_MACHINE\Software\Policies\Google\Chrome\ExtensionInstallBlacklist(it's the id of Adblock Plus)
Elviselvish answered 3/3, 2020 at 20:23 Comment(5)
can you provide a sample of your actual registry changes?Randarandal
@Randarandal I've added my changes to the initial question.Elviselvish
are you using an Enterprise build of Chrome?Randarandal
no, is it only possible with an enterprise build?Elviselvish
Yes. While some policies do not require an Enterprise build, I'm pretty sure most do. Download it here.Randarandal

© 2022 - 2024 — McMap. All rights reserved.