TestimoX

API Reference

Class

GpoAffectedObjectsService

Namespace ADPlayground.Gpo
Assembly ADPlayground
Modifiers static

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} requiredposition: 0
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: Summary

Calculates affected objects for the provided linked containers.

Parameters

linkTargets System.Collections.Generic.IReadOnlyList{System.String} requiredposition: 0
Distinguished names of linked containers (OU/domain).
blockedInheritanceByDomain System.Collections.Generic.IReadOnlyDictionary{System.String,System.Collections.Generic.IReadOnlyDictionary{System.String,System.Boolean}} requiredposition: 1
Map of OU DN to Block Inheritance flag per domain.
includeAffectedOnly System.Boolean = true optionalposition: 2
When true, only users and computers are counted.
cancellationToken System.Threading.CancellationToken = null optionalposition: 3
Cancellation token.