TestimoX

API Reference

Class

GpoBlockedInheritanceService

Namespace ADPlayground.Gpo
Assembly ADPlayground
Modifiers static

Enumerates Organizational Units and reports whether Block Inheritance is enabled (gPOptions bit 1).

Inheritance

  • Object
  • GpoBlockedInheritanceService

Methods

public static View Get(String domainName, Boolean onlyBlocked = true, Int32 maxRows = 200000) #
Returns: View

Collects blocked inheritance rows with explicit success/failure signaling.

Parameters

domainName System.String requiredposition: 0
DNS domain name.
onlyBlocked System.Boolean = true optionalposition: 1
When true, returns only OUs with Block Inheritance enabled.
maxRows System.Int32 = 200000 optionalposition: 2
Maximum number of rows to return.

Returns

Collection snapshot with rows and status metadata.

public static IReadOnlyList<GpoBlockedInheritanceRow> GetOrganizationalUnits(String domainName, Boolean onlyBlocked = true, Int32 maxRows = 200000) #
Returns: IReadOnlyList<GpoBlockedInheritanceRow>

Enumerates OU Block Inheritance status for a domain.

Parameters

domainName System.String requiredposition: 0
DNS domain name.
onlyBlocked System.Boolean = true optionalposition: 1
When true, returns only OUs with Block Inheritance enabled.
maxRows System.Int32 = 200000 optionalposition: 2
Maximum number of rows to return.

Returns

OU inheritance rows.