Share via


Gpo Class

 

Represents a Group Policy object (GPO).

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

Inheritance Hierarchy

System.Object
  Microsoft.GroupPolicy.Gpo

Syntax

public sealed class Gpo : IEquatable<Gpo>
public ref class Gpo sealed : IEquatable<Gpo^>
[<Sealed>]
type Gpo = 
    class
        interface IEquatable<Gpo>
    end
Public NotInheritable Class Gpo
    Implements IEquatable(Of Gpo)

Properties

Name Description
System_CAPS_pubproperty Computer

Gets an object that represents Computer Configuration for the Group Policy object (GPO).

System_CAPS_pubproperty CreationTime

Gets the time at which the Group Policy object (GPO) was created.

System_CAPS_pubproperty Description

Gets or sets the comment (or description) associated with the Group Policy object (GPO).

System_CAPS_pubproperty DisplayName

Gets or sets the display name of the Group Policy object (GPO).

System_CAPS_pubproperty DomainName

Gets the domain name for the Group Policy object (GPO).

System_CAPS_pubproperty GpoStatus

Gets or sets the status of the Group Policy object (GPO).

System_CAPS_pubproperty Id

Gets the ID of the Group Policy object (GPO).

System_CAPS_pubproperty ModificationTime

Gets the time at which the Group Policy object (GPO) was last modified.

System_CAPS_pubproperty Owner

Gets the owner of the Group Policy object (GPO).

System_CAPS_pubproperty Path

Gets the distinguished name of the Group Policy object (GPO).

System_CAPS_pubproperty User

Gets an object that represents User Configuration for the Group Policy object (GPO).

System_CAPS_pubproperty WmiFilter

Gets or sets the WMI filter that is linked to the Group Policy object (GPO).

Methods

Name Description
System_CAPS_pubmethod Backup(String, String)

Backs up the Group Policy object (GPO) to the specified directory.

System_CAPS_pubmethod Backup(String, String, GPStatusMessageCollection)

Backs up the Group Policy object (GPO) to the specified directory and returns status.

System_CAPS_pubmethod CopyTo(GPDomain, String, Boolean, GPMigrationTable)

Copies the Group Policy object (GPO) to a destination GPO.

System_CAPS_pubmethod CopyTo(GPDomain, String, Boolean, GPMigrationTable, GPStatusMessageCollection)

Copies the Group Policy object (GPO) to a destination GPO and returns status.

System_CAPS_pubmethod Delete()

Deletes the Group Policy object (GPO).

System_CAPS_pubmethod Equals(Gpo)

Determines whether the specified Group Policy object (GPO) is equal to this GPO.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GenerateReport(ReportType)

Generates a report for the Group Policy object (GPO) in the specified format.

System_CAPS_pubmethod GenerateReport(ReportType, GPStatusMessageCollection)

Generates a report for the Group Policy object (GPO) in the specified format, and returns status.

System_CAPS_pubmethod GenerateReportToFile(ReportType, String)

Generates a report for a Group Policy object (GPO) and saves it to a specified file.

System_CAPS_pubmethod GenerateReportToFile(ReportType, String, GPStatusMessageCollection)

Generates a report for a Group Policy object (GPO), saves it to a specified file, and returns status.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetSecurityInfo()

Retrieves the set of permissions for the Group Policy object (GPO), such as who is granted permission to edit it.

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod Import(GpoBackup)

Imports the policy settings from a specified Group Policy object (GPO) backup.

System_CAPS_pubmethod Import(GpoBackup, GPMigrationTable)

Imports the policy settings from a specified Group Policy object (GPO) backup by using the specified migration table.

System_CAPS_pubmethod Import(GpoBackup, GPMigrationTable, Boolean)

Imports the policy settings from the specified Group Policy object (GPO) backup by using the specified migration table and a value that specifies whether to fail if a map entry does not exist.

System_CAPS_pubmethod Import(GpoBackup, GPMigrationTable, Boolean, GPStatusMessageCollection)

Imports the policy settings from a specified Group Policy object (GPO) backup by using the specified migration table and a value that specifies whether to fail if a map entry does not exist. This method also returns status.

System_CAPS_pubmethod Import(GpoBackup, GPMigrationTable, GPStatusMessageCollection)

Imports the policy settings from the specified Group Policy object (GPO) backup by using the specified migration table and returns status.

System_CAPS_pubmethod Import(GpoBackup, GPStatusMessageCollection)

Imports the policy settings from a specified Group Policy object (GPO) backup and returns status.

System_CAPS_pubmethod IsAclConsistent()

Checks for the consistency of ACLs between the directory service and the system volume folder (SysVol).

System_CAPS_pubmethod MakeAclConsistent()

Makes ACLs consistent on the directory service and the system volume folder (SysVol) of the Group Policy object (GPO).

System_CAPS_pubmethod SetSecurityInfo(GPPermissionCollection)

Sets the trustees (security principals) and their permissions for the Group Policy object (GPO).

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Remarks

This class wraps the IGPMGPO COM interface.

Thread Safety

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

See Also

Microsoft.GroupPolicy Namespace

Return to top