TestimoX

API Reference

Class

LapsPolicyDiscoveryService

Namespace ADPlayground.Gpo
Assembly ADPlayground
Modifiers static

Discovers OU targets that likely carry LAPS policy by inspecting GPO links and returns a primary candidate along with all evaluated targets. Uses LapsPolicyService to resolve effective values and attribution for each candidate.

Inheritance

  • Object
  • LapsPolicyDiscoveryService

Methods

DiscoverForDomain 2 overloads
public static DiscoveryView DiscoverForDomain(String domainName, Boolean excludeDomainControllersOu = true, Boolean includeDomainRoot = true, Boolean includeContainers = true, Boolean includeSites = false) #
Returns: DiscoveryView

Discovers OU targets with linked GPOs under the specified domain and evaluates LAPS policy posture for each. The most complete policy is selected as Primary.

Parameters

domainName System.String requiredposition: 0
DNS domain name.
excludeDomainControllersOu System.Boolean = true optionalposition: 1
When true, excludes the Domain Controllers OU from candidates.
includeDomainRoot System.Boolean = true optionalposition: 2
When true, evaluates the domain root as a candidate target.
includeContainers System.Boolean = true optionalposition: 3
When true, includes CN= containers linked to the GPO.
includeSites System.Boolean = false optionalposition: 4
When true, includes site-linked GPOs during policy resolution.

Returns

A DiscoveryView with Primary and Targets.

public static DiscoveryView DiscoverForDomain(String domainName, LapsDiscoveryOptions options) #
Returns: DiscoveryView

Discovers OU targets with linked GPOs under the specified domain and evaluates LAPS policy posture for each. The most complete policy is selected as Primary.

Parameters

domainName System.String requiredposition: 0
DNS domain name.
options ADPlayground.Gpo.LapsPolicyDiscoveryService.LapsDiscoveryOptions requiredposition: 1
Discovery options (exclude DC OU, include root/containers/sites, caps).

Returns

A DiscoveryView with Primary and Targets.