API Reference
Class
TimeServiceEffectivePolicyService
Returns effective Windows Time Service (W32Time) policy for the Domain Controllers OU. Thin wrapper around GpoRegistryPolicyService to expose a stable API for consumers.
Inheritance
- Object
- TimeServiceEffectivePolicyService
Methods
public static TimeServiceEvaluatedView GetEvaluatedForDomainControllers(String domainName) #Returns:
TimeServiceEvaluatedViewComputes PDC vs non‑PDC evaluated effective policy (merging only applicable GPOs by role).
Parameters
- domainName System.String
public static TimeServiceEffectivePolicyView GetForDomainControllers(String domainName) #Returns:
TimeServiceEffectivePolicyViewComputes effective Windows Time Service (W32Time) policy applied to Domain Controllers in a domain.
Parameters
- domainName System.String
- DNS domain name to query.
Returns
Flattened view of relevant W32Time policy values.