API Reference
Class
MachineAccountQuotaChecker
Checks the ms-DS-MachineAccountQuota value on domain partitions.
Inheritance
- Object
- MachineAccountQuotaChecker
Constructors
public MachineAccountQuotaChecker(Int32 threshold = 0, Func<String, Nullable<Int32>> fetchQuota = null, Func<IEnumerable<String>> enumerateDomains = null) #Initializes a new instance of the MachineAccountQuotaChecker class.
Parameters
- threshold System.Int32 = 0
- Maximum allowed quota value.
- fetchQuota System.Func{System.String,System.Nullable{System.Int32}} = null
- Optional function retrieving the quota for a domain.
- enumerateDomains System.Func{System.Collections.Generic.IEnumerable{System.String}} = null
- Optional function returning domains to check.
Methods
public Void CheckQuota() #Returns:
VoidChecks the MachineAccountQuota across all domains in the forest.
public Void CheckQuotaForDomain(String domainName = null) #Returns:
VoidChecks the quota for a single domain and logs a warning when it exceeds the threshold.
Parameters
- domainName System.String = null
- Target domain or null for the current domain.
public Nullable<Int32> GetQuota(String domainName) #Returns:
Nullable<Int32>Retrieves the ms-DS-MachineAccountQuota value for a domain.
Parameters
- domainName System.String
- Target domain.
Returns
Quota value or null when unavailable.
Inherited Methods
Properties
public Int32 Threshold { get; set; } #Maximum allowed quota value before a warning is emitted.