How to programatically refresh chrome policy 'ExtensionInstallBlacklist' on windows?

大城市里の小女人 提交于 2020-04-16 05:49:22

问题


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)

来源:https://stackoverflow.com/questions/60514954/how-to-programatically-refresh-chrome-policy-extensioninstallblacklist-on-wind

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!