IGroupPolicyObject2 interface

The IGroupPolicyObject2 interface provides methods to create and modify a Group Policy object (GPO) directly, without using the Group Policy Object Editor.

Note that this interface does not support multithreaded object concurrency.

Members

The IGroupPolicyObject2 interface inherits from IGroupPolicyObject. IGroupPolicyObject2 also has these types of members:

Methods

The IGroupPolicyObject2 interface has these methods.

MethodDescription
GetRegistryKeyPath

Retrieves a path to the root of the registry key for the specified GPO section. The returned path is the root of the registry, not the Policies subkey.

OpenLocalMachineGPOForPrincipal

Opens the local GPO for the specified local user or group on this computer and optionally loads the registry information.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Gpedit2.h

DLL

Gpedit.dll

IID

IID_IGroupPolicyObject2 is defined as 7E37D5E7-263D-45CF-842B-96A95C63E46C

 

 

Show:
© 2014 Microsoft