API Reference
Class
SysvolDiagnostics
In-memory aggregator of SYSVOL decisions for reporting.
Inheritance
- Object
- SysvolDiagnostics
Methods
public static IReadOnlyList<SysvolEvent> GetAll() #Returns:
IReadOnlyList<SysvolEvent>Returns a snapshot of all recorded events in insertion order.
public static Void RecordChosen(String domain, String from, String to, String original, String newPath, String context = null) #Returns:
VoidRecords that a specific domain controller path was chosen.
Parameters
- domain System.String
- DNS domain name.
- from System.String
- Original server (when decision rewritten from another target).
- to System.String
- Target server name.
- original System.String
- Original UNC path.
- newPath System.String
- Resulting UNC path.
- context System.String = null
- Optional logical context (caller/rule).
public static Void RecordFallback(String domain, String from, String to, String original, String newPath, String reason = null, String context = null) #Returns:
VoidRecords that the UNC path fell back to a DFS path (\\\\domain\\SYSVOL\\...).
Parameters
- domain System.String
- DNS domain name.
- from System.String
- Original server name.
- to System.String
- Final server name.
- original System.String
- Original UNC path.
- newPath System.String
- Fallback UNC path.
- reason System.String = null
- Optional reason for the fallback.
- context System.String = null
- Optional logical context.
public static Void RecordPreflightFail(String domain, String server, String reason = null, String context = null) #Returns:
VoidRecords that the SMB preflight check failed for the specified server.
Parameters
- domain System.String
- DNS domain name.
- server System.String
- Server that failed the preflight.
- reason System.String = null
- Optional reason (e.g., host unreachable).
- context System.String = null
- Optional logical context.
public static Void RecordRewrite(String domain, String from, String to, String original, String newPath, String reason = null, String context = null) #Returns:
VoidRecords that the UNC path was rewritten to a healthier/available domain controller.
Parameters
- domain System.String
- DNS domain name.
- from System.String
- Original server.
- to System.String
- Rewritten server name.
- original System.String
- Original UNC path.
- newPath System.String
- Rewritten UNC path.
- reason System.String = null
- Optional reason (e.g., ping failure).
- context System.String = null
- Optional logical context.
public static Void RecordSkip(String domain, String server, String reason = null, String context = null) #Returns:
VoidRecords that an explicit server path was kept or skipped.
Parameters
- domain System.String
- DNS domain name.
- server System.String
- Server that was kept.
- reason System.String = null
- Optional reason (e.g., explicit DC path).
- context System.String = null
- Optional logical context.