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 | |
---|---|---|
![]() |
Computer | Gets an object that represents Computer Configuration for the Group Policy object (GPO). |
![]() |
CreationTime | Gets the time at which the Group Policy object (GPO) was created. |
![]() |
Description | Gets or sets the comment (or description) associated with the Group Policy object (GPO). |
![]() |
DisplayName | Gets or sets the display name of the Group Policy object (GPO). |
![]() |
DomainName | Gets the domain name for the Group Policy object (GPO). |
![]() |
GpoStatus | Gets or sets the status of the Group Policy object (GPO). |
![]() |
Id | Gets the ID of the Group Policy object (GPO). |
![]() |
ModificationTime | Gets the time at which the Group Policy object (GPO) was last modified. |
![]() |
Owner | Gets the owner of the Group Policy object (GPO). |
![]() |
Path | Gets the distinguished name of the Group Policy object (GPO). |
![]() |
User | Gets an object that represents User Configuration for the Group Policy object (GPO). |
![]() |
WmiFilter | Gets or sets the WMI filter that is linked to the Group Policy object (GPO). |
Methods
Name | Description | |
---|---|---|
![]() |
Backup(String, String) | Backs up the Group Policy object (GPO) to the specified directory. |
![]() |
Backup(String, String, GPStatusMessageCollection) | Backs up the Group Policy object (GPO) to the specified directory and returns status. |
![]() |
CopyTo(GPDomain, String, Boolean, GPMigrationTable) | Copies the Group Policy object (GPO) to a destination GPO. |
![]() |
CopyTo(GPDomain, String, Boolean, GPMigrationTable, GPStatusMessageCollection) | Copies the Group Policy object (GPO) to a destination GPO and returns status. |
![]() |
Delete() | Deletes the Group Policy object (GPO). |
![]() |
Equals(Gpo) | Determines whether the specified Group Policy object (GPO) is equal to this GPO. |
![]() |
Equals(Object) | (Inherited from Object.) |
![]() |
GenerateReport(ReportType) | Generates a report for the Group Policy object (GPO) in the specified format. |
![]() |
GenerateReport(ReportType, GPStatusMessageCollection) | Generates a report for the Group Policy object (GPO) in the specified format, and returns status. |
![]() |
GenerateReportToFile(ReportType, String) | Generates a report for a Group Policy object (GPO) and saves it to a specified file. |
![]() |
GenerateReportToFile(ReportType, String, GPStatusMessageCollection) | Generates a report for a Group Policy object (GPO), saves it to a specified file, and returns status. |
![]() |
GetHashCode() | (Inherited from Object.) |
![]() |
GetSecurityInfo() | Retrieves the set of permissions for the Group Policy object (GPO), such as who is granted permission to edit it. |
![]() |
GetType() | (Inherited from Object.) |
![]() |
Import(GpoBackup) | Imports the policy settings from a specified Group Policy object (GPO) backup. |
![]() |
Import(GpoBackup, GPMigrationTable) | Imports the policy settings from a specified Group Policy object (GPO) backup by using the specified migration table. |
![]() |
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. |
![]() |
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. |
![]() |
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. |
![]() |
Import(GpoBackup, GPStatusMessageCollection) | Imports the policy settings from a specified Group Policy object (GPO) backup and returns status. |
![]() |
IsAclConsistent() | Checks for the consistency of ACLs between the directory service and the system volume folder (SysVol). |
![]() |
MakeAclConsistent() | Makes ACLs consistent on the directory service and the system volume folder (SysVol) of the Group Policy object (GPO). |
![]() |
SetSecurityInfo(GPPermissionCollection) | Sets the trustees (security principals) and their permissions for the Group Policy object (GPO). |
![]() |
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