API Reference
Class
SpnHygieneService
Produces a hygiene snapshot for SPN-bearing accounts: privileged accounts with SPNs and invalid SPN strings.
Inheritance
- Object
- SpnHygieneService
Methods
public static SpnHygieneSnapshot Evaluate(String domainName, IEnumerable<String> allowlist = null, IEnumerable<String> blocklist = null, Int32 topN = 10, IEnumerable<String> dnsResolveClasses = null) #Returns:
SpnHygieneSnapshotProduces a domain-level SPN hygiene snapshot.
Parameters
- domainName System.String
- DNS domain name.
- allowlist System.Collections.Generic.IEnumerable{System.String} = null
- Optional allowlist of service classes considered expected (others marked unexpected).
- blocklist System.Collections.Generic.IEnumerable{System.String} = null
- Optional blocklist of service classes to flag as blocked.
- topN System.Int32 = 10
- Number of service classes to include in TopClasses.
- dnsResolveClasses System.Collections.Generic.IEnumerable{System.String} = null
- Service classes for which DNS resolution is attempted on SPN targets.
Returns
Aggregated snapshot with counts, invalid entries, and service class breakdown.