API Reference
Class
GpoBlockedInheritanceService
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:
ViewCollects blocked inheritance rows with explicit success/failure signaling.
Parameters
- domainName System.String
- DNS domain name.
- onlyBlocked System.Boolean = true
- When true, returns only OUs with Block Inheritance enabled.
- maxRows System.Int32 = 200000
- 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
- DNS domain name.
- onlyBlocked System.Boolean = true
- When true, returns only OUs with Block Inheritance enabled.
- maxRows System.Int32 = 200000
- Maximum number of rows to return.
Returns
OU inheritance rows.