1

I am working on IE BHO toolbar. When I install it for IE 8, it works fine. In case of IE 9, It pops up an info bar asking if to enable it. I know what settings to change in group policy manually. I just do not know how to do it in programming.

Changes to make are in Group Policy:

  • Location: User Config
    • Administrative Template
      • Windows Components
        • IE
          • Security Features Add-on Management

Modifications:

  • Set Add-on list to enabled
  • Add an entry in Add-on list

Are there any straight forward APIs to do this job?

I am primarily looking for C++ APIs but I am fine with C# / WMI based approach too.

Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
vrrathod
  • 1,230
  • 2
  • 18
  • 28

1 Answers1

6

Exists a couple of ways to handle the Windows Group Policies

1) You can use the Group Policy API which has a set of interfaces to access from C++.

2) Using the RSoP WMI Classes

3) Locating the windows registry key where the Group Policy are stored using the Group Policy Settings Reference for Windows and Windows Server

RRUZ
  • 134,889
  • 20
  • 356
  • 483
  • A nice detailed answer. Thanks. – vrrathod Apr 04 '12 at 01:54
  • Updating group policy from registry is not correct. It may work, but actual information is stored in `env:windir\system32\GroupPolicy\Machine\registry.pol`. Based on this Windows updates registry keys. Updating registry may work only temporary. – Zergatul Mar 31 '22 at 15:48