TestimoX

API Reference

Class

PrivilegedEmailService

Namespace ADPlayground.Infrastructure
Assembly ADPlayground
Modifiers static

Computes email presence for privileged accounts (Domain Admins, Enterprise Admins, Schema Admins, Key Admins). Designed for reuse by TestimoX and PowerShell.

Inheritance

  • Object
  • PrivilegedEmailService

Methods

public static PrivilegedEmailSnapshot GetSnapshot(String domainName) #
Returns: PrivilegedEmailSnapshot

Enumerates privileged accounts in domainName and returns their email details.

Parameters

domainName System.String requiredposition: 0
Target domain DNS name.

Returns

Snapshot containing privileged accounts and email presence.

public static async Task<PrivilegedEmailSnapshot> GetSnapshotAsync(String domainName, CancellationToken ct) #
Returns: Task<PrivilegedEmailSnapshot>

Async variant that honors cancellation and uses async LDAP helpers end-to-end.

Parameters

domainName System.String requiredposition: 0
ct System.Threading.CancellationToken requiredposition: 1