API Reference
NetlogonSiteCoverageChecker
Retrieves Netlogon site coverage configuration from domain controllers.
Inheritance
- Object
- NetlogonSiteCoverageChecker
Constructors
public NetlogonSiteCoverageChecker(Func<String, NetlogonOptions> readOptions = null, Func<IEnumerable<String>> enumerateDcs = null, Func<String, Nullable<DateTime>> readLastRefresh = null) #Initializes a new instance of the NetlogonSiteCoverageChecker class.
Parameters
- readOptions System.Func{System.String,ADPlayground.DomainControllers.NetlogonOptions} = null
- Delegate used to read Netlogon options.
- enumerateDcs System.Func{System.Collections.Generic.IEnumerable{System.String}} = null
- Delegate used to enumerate domain controllers.
- readLastRefresh System.Func{System.String,System.Nullable{System.DateTime}} = null
- Delegate used to read the last refresh time.
Methods
public virtual IReadOnlyList<String> GetGcSiteCoverage(String dcName) #IReadOnlyList<String>Gets the list of global catalog sites configured for the domain controller.
Parameters
- dcName System.String
public virtual Nullable<DateTime> GetLastRefreshTime(String dcName) #Nullable<DateTime>Retrieves the last time the Netlogon service was refreshed.
Parameters
- dcName System.String
- Domain controller name.
Returns
Timestamp of the last refresh or null if unavailable.
public virtual NetlogonOptions GetOptions(String dcName) #NetlogonOptionsRetrieves all Netlogon parameters for the specified domain controller.
Parameters
- dcName System.String
public virtual IReadOnlyList<String> GetSiteCoverage(String dcName) #IReadOnlyList<String>Gets the list of sites configured for the domain controller.
Parameters
- dcName System.String
public virtual NetlogonSiteCoverageStatus GetStatus(String dcName) #NetlogonSiteCoverageStatusGenerates a NetlogonSiteCoverageStatus object for the specified domain controller.
Parameters
- dcName System.String
- Domain controller name.
Returns
Status information for the domain controller.
public virtual IEnumerable<NetlogonSiteCoverageStatus> GetStatusReport() #IEnumerable<NetlogonSiteCoverageStatus>Returns status information for all discovered domain controllers.
Returns
An enumerable collection of status objects.
public virtual Nullable<Boolean> IsAutoSiteCoverageEnabled(String dcName) #Nullable<Boolean>Checks whether AutoSiteCoverage is enabled.
Parameters
- dcName System.String
- Domain controller name.
Returns
Value or null on error.
public virtual Void ValidateAll() #VoidValidates site coverage configuration on all discovered domain controllers.
public virtual Void ValidateDc(String dcName) #VoidValidates site coverage configuration and logs warnings when disabled.
Parameters
- dcName System.String