IGroupPolicyObject interface
The IGroupPolicyObject interface provides methods to create and modify a GPO directly, without using the Group Policy Object Editor.
Note that this interface does not support multithreaded object concurrency.
Members
The IGroupPolicyObject interface inherits from the IUnknown interface. IGroupPolicyObject also has these types of members:
Methods
The IGroupPolicyObject interface has these methods.
| Method | Description |
|---|---|
| Delete |
Deletes the GPO. |
| GetDisplayName |
Retrieves the display name for the GPO. |
| GetDSPath |
Retrieves the Active Directory path to the root of the specified GPO section. |
| GetFileSysPath |
Retrieves the file system path (UNC format) to the root of the specified GPO section. |
| GetMachineName |
Retrieves the computer name of the remote GPO. |
| GetName |
Retrieves the unique name for the GPO. |
| GetOptions |
Retrieves the options for the GPO. |
| GetPath |
Retrieves the path to the GPO. |
| GetPropertySheetPages |
Retrieves the property sheet pages associated with the GPO. |
| GetRegistryKey |
Retrieves a handle to the root of the registry key for the specified GPO section. |
| GetType |
Retrieves type information for the GPO being edited. |
| New |
Creates a new GPO in the Active Directory with the specified display name. |
| OpenDSGPO |
Opens the specified GPO and optionally loads the registry information. |
| OpenLocalMachineGPO |
Opens the default GPO for the computer and optionally loads the registry information. |
| OpenRemoteMachineGPO |
Opens the default GPO for the specified remote computer and optionally loads the registry information. |
| Save |
Saves the specified registry policy settings to disk and updates the revision number of the GPO. |
| SetDisplayName |
Sets the display name for the GPO. |
| SetOptions |
Sets the options for the GPO. |
Remarks
For methods that Microsoft Management Console (MMC) extension snap-ins can use to communicate with the Group Policy Object Editor, see the IGPEInformation interface.
Requirements
|
Minimum supported client |
Windows Vista |
|---|---|
|
Minimum supported server |
Windows Server 2008 |
|
Header |
|
|
DLL |
|
|
IID |
IID_IGroupPolicyObject is defined as EA502723-A23D-11d1-A7D3-0000F87571E3 |
See also