TestimoX

API Reference

Class

GpoRemovalPlanner

Namespace ADPlayground.Gpo
Assembly ADPlayground
Modifiers static

Builds a set of GPO removal candidates for requested states across one or more domains.

Inheritance

  • Object
  • GpoRemovalPlanner

Methods

GetCandidates 2 overloads
public static IEnumerable<GpoRemovalCandidate> GetCandidates(IEnumerable<String> domains, IEnumerable<String> states) #
Returns: IEnumerable<GpoRemovalCandidate>

Enumerates domains and yields GPOs that match any of the requested states.

Parameters

domains System.Collections.Generic.IEnumerable{System.String} requiredposition: 0
Optional domains. When null/empty, the whole forest is scanned.
states System.Collections.Generic.IEnumerable{System.String} requiredposition: 1
One or more states to match (Unlinked, DisabledLinksOnly, CrossDomainLinks, EmptySettings, EmptyGpo).
public static IReadOnlyList<GpoRemovalCandidate> GetCandidates(IEnumerable<String> domains, IEnumerable<String> states, String sortBy, Boolean descending, Int32 max) #
Returns: IReadOnlyList<GpoRemovalCandidate>

Returns candidates with optional sorting and limiting handled in the planner.

Parameters

domains System.Collections.Generic.IEnumerable{System.String} requiredposition: 0
Optional domains. When null/empty, the whole forest is scanned.
states System.Collections.Generic.IEnumerable{System.String} requiredposition: 1
States to match.
sortBy System.String requiredposition: 2
Name | Reasons | Domain | Guid (case-insensitive, default Name)
descending System.Boolean requiredposition: 3
When true, reverse sort order.
max System.Int32 requiredposition: 4
Top-N limit; 0 for no limit.