TestimoX

API Reference

Class

GpoLink

Namespace ADPlayground.Gpo
Assembly ADPlayground
Modifiers sealed

Represents a link to a GPO.

Inheritance

  • Object
  • GpoLink

Constructors

public GpoLink(String distinguishedName, String canonicalName, String objectClass, Boolean enabled, Boolean enforced, GpoLinkStatus status, String gpoDomainDistinguishedName, Int32 order, Boolean inheritanceBlocked = false, Int32 gpOptions = 0) #

Initializes a new instance of the GpoLink class.

Parameters

distinguishedName System.String requiredposition: 0
Distinguished name of the linked object.
canonicalName System.String requiredposition: 1
Canonical name of the linked object.
objectClass System.String requiredposition: 2
Object class of the linked object.
enabled System.Boolean requiredposition: 3
Indicates whether the link is enabled.
enforced System.Boolean requiredposition: 4
Indicates whether the link is enforced.
status ADPlayground.Gpo.GpoLinkStatus requiredposition: 5
State of the link.
gpoDomainDistinguishedName System.String requiredposition: 6
Distinguished name of the GPO's domain.
order System.Int32 requiredposition: 7
Order of the link within the gPLink value.
inheritanceBlocked System.Boolean = false optionalposition: 8
Indicates whether Block Inheritance is set on the container.
gpOptions System.Int32 = 0 optionalposition: 9
Raw gpOptions value read from the container where the link resides.

Properties

public String DistinguishedName { get; } #

Distinguished name of the linked object.

public String CanonicalName { get; } #

Canonical name of the linked object.

public String ObjectClass { get; } #

Object class of the linked object.

public Boolean Enabled { get; } #

Indicates whether the link is enabled.

public Boolean Enforced { get; } #

Indicates whether the link is enforced.

public GpoLinkStatus Status { get; } #

State of the link.

public String GpoDomainDistinguishedName { get; } #

Distinguished name of the GPO's domain.

public Int32 Order { get; } #

Order of the link within the gPLink value.

public GpoLinkTargetType TargetType { get; } #

Type of object the GPO is linked to.

public Boolean IsCrossDomain { get; } #

Indicates whether the link references a GPO from another domain.

public Boolean InheritanceBlocked { get; } #

Indicates whether the container has Block Inheritance (gpOptions bit 1).

public Int32 GpOptions { get; } #

Raw gpOptions value from the container where the link is present.

public String LinkScope { get; } #

Human‑readable link scope (Domain/Site/OU/Container).