API Reference
Class
GpoAffectedObjectsService
Computes affected object counts for a set of linked containers, honoring Block Inheritance.
Inheritance
- Object
- GpoAffectedObjectsService
Methods
public static IReadOnlyDictionary<String, IReadOnlyDictionary<String, Boolean>> BuildBlockedInheritanceMap(IReadOnlyCollection<String> domains) #Returns:
IReadOnlyDictionary<String, IReadOnlyDictionary<String, Boolean>>Builds a domain map of OU inheritance flags for use in affected-object calculations.
Parameters
- domains System.Collections.Generic.IReadOnlyCollection{System.String}
- Domain DNS names to scan.
public static Summary GetSummary(IReadOnlyList<String> linkTargets, IReadOnlyDictionary<String, IReadOnlyDictionary<String, Boolean>> blockedInheritanceByDomain, Boolean includeAffectedOnly = true, CancellationToken cancellationToken = null) #Returns:
SummaryCalculates affected objects for the provided linked containers.
Parameters
- linkTargets System.Collections.Generic.IReadOnlyList{System.String}
- Distinguished names of linked containers (OU/domain).
- blockedInheritanceByDomain System.Collections.Generic.IReadOnlyDictionary{System.String,System.Collections.Generic.IReadOnlyDictionary{System.String,System.Boolean}}
- Map of OU DN to Block Inheritance flag per domain.
- includeAffectedOnly System.Boolean = true
- When true, only users and computers are counted.
- cancellationToken System.Threading.CancellationToken = null
- Cancellation token.