GPDomain Class

 

Represents a domain.

Namespace:   Microsoft.GroupPolicy
Assembly:  Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)

System.Object
  Microsoft.GroupPolicy.GPDomain

Public Class GPDomain

NameDescription
System_CAPS_pubmethodGPDomain()

Initializes a new instance of the GPDomain class that represents the domain of the current user.

System_CAPS_pubmethodGPDomain(String)

Initializes a new instance of the GPDomain class that represents the specified domain.

System_CAPS_pubmethodGPDomain(String, DCUsage)

Initializes a new instance of the GPDomain class that represents the specified domain. The domain controller is specified by one of the DCUsage enumeration values.

System_CAPS_pubmethodGPDomain(String, String)

Initializes a new instance of the GPDomain class that represents the specified domain. The specified domain controller is used to communicate with the domain.

NameDescription
System_CAPS_pubpropertyDomainController

Gets the name of the domain controller that is used by this GPDomain object.

System_CAPS_pubpropertyDomainName

Gets the full DNS name of the current domain.

NameDescription
System_CAPS_pubmethodCreateGpo(String)

Creates a new Group Policy object (GPO) with the specified display name in the domain.

System_CAPS_pubmethodCreateGpo(String, StarterGpo)

Creates a new Group Policy object (GPO) from the specified Starter GPO with the specified display name in the domain.

System_CAPS_pubmethodCreateStarterGpo(String)

Creates a new Starter Group Policy object (GPO) with the specified display name in the domain.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetAllGpos()

Retrieves all the Group Policy objects (GPOs) in the domain.

System_CAPS_pubmethodGetAllStarterGpos()

Retrieves all the Starter Group Policy objects (GPOs) in the domain.

System_CAPS_pubmethodGetGpo(Guid)

Retrieves the Group Policy object (GPO) with the specified ID (GUID) from the domain.

System_CAPS_pubmethodGetGpo(String)

Retrieves the Group Policy object (GPO) with the specified display name from the domain.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetSom(String)

Retrieves a scope of management (SOM) that represents the domain or the organizational unit (OU) at the specified path.

System_CAPS_pubmethodGetStarterGpo(Guid)

Retrieves the Starter Group Policy object (GPO) that has the specified ID (GUID) from the domain.

System_CAPS_pubmethodGetStarterGpo(String)

Retrieves the Starter Group Policy object (GPO) that has the specified display name from the domain.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodGetWmiFilter(String)

Retrieves the specified WMI filter from the domain.

System_CAPS_pubmethodImportStarterGpo(String, Boolean)

Imports a Starter Group Policy object (GPO) into the domain from the specified Starter GPO cabinet (CAB) file.

System_CAPS_pubmethodImportStarterGpo(String, Boolean, GPStatusMessageCollection)

Imports a Starter Group Policy object (GPO) into the domain from the specified Starter GPO cabinet (CAB) file and return status.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodRestoreGpo(GpoBackup)

Restores a Group Policy object (GPO) to the domain from the specified GPO backup.

System_CAPS_pubmethodRestoreGpo(GpoBackup, GPStatusMessageCollection)

Restores a Group Policy object (GPO) to the domain from the specified GPO backup.

System_CAPS_pubmethodRestoreStarterGpo(StarterGpoBackup)

Restores the Starter Group Policy object (GPO) from the specified Starter GPO backup.

System_CAPS_pubmethodRestoreStarterGpo(StarterGpoBackup, GPStatusMessageCollection)

Restores the Starter Group Policy object (GPO) from the specified Starter GPO backup and returns status.

System_CAPS_pubmethodSearchGpos(GPSearchCriteria)

Queries the domain for Group Policy objects (GPOs) that match a set of search criteria.

System_CAPS_pubmethodSearchGpos(String)

Queries for Group Policy objects (GPOs) that have the specified display name.

System_CAPS_pubmethodSearchSoms(Gpo)

Retrieves a scope of management (SOM) for each container (in the domain) that the specified GPO is linked to.

System_CAPS_pubmethodSearchStarterGpos(GPSearchCriteria)

Queries the domain for Starter Group Policy object (GPO) that match a set of search criteria.

System_CAPS_pubmethodSearchStarterGpos(String)

Queries for Starter Group Policy object (GPO) that have the specified display name.

System_CAPS_pubmethodSearchWmiFilters(GPSearchCriteria)

Queries the domain for all WMI filters.

System_CAPS_pubmethodToString()

(Inherited from Object.)

The GPDomain class supports methods and properties that you can use to perform the following tasks:

  • Query scope of management (SOM) objects.

  • Create, restore and query Group Policy objects (GPOs).

  • Create and query Windows Management Instrumentation (WMI) filters.

This class wraps both the IGPMDomain and the IGPMDomain2 COM interfaces.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top

Community Additions

ADD
Show: