IGPMDomain interface

The IGPMDomain interface represents a specific domain and supports methods that allow you to perform the following tasks when you are using the Group Policy Management Console (GPMC) interfaces:

  • Query scope of management (SOM) objects.
  • Create, restore and query Group Policy objects (GPOs).
  • Create and query Windows Management Instrumentation (WMI) filters.

To create a GPMDomain object, call the IGPM::GetDomain method.

Members

The IGPMDomain interface inherits from the IDispatch interface. IGPMDomain also has these types of members:

Methods

The IGPMDomain interface has these methods.

MethodDescription
CreateGPO

Creates and retrieves a GPMGPO object.

GetGPO

Retrieves the GPMGPO object that has a specified GPO ID.

GetSOM

Retrieves the GPMSOM object that has the specified path.

GetWMIFilter

Retrieves a GPMWMIFilter object that has the specified path.

RestoreGPO

Restores a GPO from a GPMBackup object.

SearchGPOs

Executes a search for GPMGPO objects in the domain, and returns a GPMGPOCollection object.

SearchSOMs

Executes a search for GPMSOM objects (domains and organizational units [OUs]) in the domain, and returns a GPMSOMCollection object.

SearchWMIFilters

Executes a search for GPMWMIFilter objects in the domain, and returns a GPMWMIFilterCollection object.

 

Properties

The IGPMDomain interface has these properties.

PropertyAccess typeDescription

Domain

Read-only

The full Domain Name System (DNS) name of the domain, such as "example.microsoft.com".

DomainController

Read-only

The full DNS name of the domain controller. This is the domain controller with which the GPMC is communicating. The domain controller is specified by the user in a call to the IGPM::GetDomain method.

 

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Gpmgmt.h

IDL

Gpmgmt.idl

DLL

Gpmgmt.dll

IID

IID_IGPMDomain is defined as 6B21CC14-5A00-4F44-A738-FEEC8A94C7E3

See also

IDispatch
IGPM
IGPMBackup
IGPMGPO
IGPMGPOCollection
IGPMSOM
IGPMSOMCollection
IGPMWMIFilter
IGPMWMIFilterCollection

 

 

Show: