GpoLink Class

 

Represents a link between a GPO and a scope of management (SOM).

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

Inheritance Hierarchy

System.Object
  Microsoft.GroupPolicy.GpoLink

Syntax

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

Properties

Name Description
System_CAPS_pubproperty DisplayName

Gets the display name of the GPO for this link.

System_CAPS_pubproperty Enabled

Gets or sets a value that specifies whether the GPO link is enabled.

System_CAPS_pubproperty Enforced

Gets or sets a value that specifies whether the GPO link is enforced.

System_CAPS_pubproperty GpoDomainName

Gets the name of the domain in which the GPO exists.

System_CAPS_pubproperty GpoId

Gets the ID of the GPO for this link.

System_CAPS_pubproperty Order

Gets the position of the GPO link in relation to other GPO links for the scope of management (SOM).

System_CAPS_pubproperty Target

Gets the LDAP distinguished name of the container (site, domain, or OU) to which the GPO is linked.

Methods

Name Description
System_CAPS_pubmethod Delete()

Removes the link from the SOM.

System_CAPS_pubmethod Equals(GpoLink)

Determines whether the specified GPO link is equal to this GPO link.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Remarks

This class wraps the IGPMGPOLink 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