API Reference
Class
DcPrintSpoolerChecker
Checks whether the Print Spooler service is running on domain controllers.
Inheritance
- Object
- DcPrintSpoolerChecker
Constructors
public DcPrintSpoolerChecker(Func<String, Nullable<Boolean>> isRunning = null, Func<IEnumerable<String>> enumerateDcs = null) #Initializes a new instance of the DcPrintSpoolerChecker class.
Parameters
- isRunning System.Func{System.String,System.Nullable{System.Boolean}} = null
- Function determining if the Print Spooler service is running.
- enumerateDcs System.Func{System.Collections.Generic.IEnumerable{System.String}} = null
- Function enumerating domain controllers.
Methods
public virtual Nullable<Boolean> IsPrintSpoolerRunning(String dcName) #Returns:
Nullable<Boolean>Gets the Print Spooler running state for the specified domain controller.
Parameters
- dcName System.String
- Domain controller name.
Returns
true if running; false if stopped; null on error.
public virtual Void ValidateAll() #Returns:
VoidValidates the Print Spooler service state for all domain controllers returned by the enumerator.
public virtual Void ValidateDc(String dcName) #Returns:
VoidValidates the Print Spooler service state for a single domain controller.
Parameters
- dcName System.String
- Domain controller name.