API Reference
Class
SystemStateBackupChecker
Validates existence and recency of System State backups on domain controllers.
Inheritance
- Object
- SystemStateBackupChecker
Constructors
public SystemStateBackupChecker(Int32 thresholdDays = 30, Func<String, Nullable<DateTime>> fetchLastBackup = null, Func<IEnumerable<String>> enumerateDcs = null) #Initializes a new instance of the SystemStateBackupChecker class.
Parameters
- thresholdDays System.Int32 = 30
- Number of days after which a warning is raised.
- fetchLastBackup System.Func{System.String,System.Nullable{System.DateTime}} = null
- Function retrieving the last successful backup time.
- enumerateDcs System.Func{System.Collections.Generic.IEnumerable{System.String}} = null
- Function returning domain controller names.
Methods
public virtual Nullable<DateTime> GetLastBackup(String dcName) #Returns:
Nullable<DateTime>Gets the time of the last successful System State backup for the domain controller.
Parameters
- dcName System.String
- Domain controller name.
Returns
Timestamp if found; otherwise null.
public virtual IEnumerable<SystemStateBackupStatus> GetStatusReport() #Returns:
IEnumerable<SystemStateBackupStatus>Retrieves backup information for all domain controllers.
public virtual Void ValidateAll() #Returns:
VoidValidates System State backups on all discovered domain controllers.
public virtual Void ValidateDc(String dcName) #Returns:
VoidValidates System State backup on the specified domain controller and logs warnings.
Parameters
- dcName System.String
- Domain controller name.
Inherited Methods
Properties
public virtual Int32 ThresholdDays { get; set; } #Maximum allowed age of the last successful backup in days.