TestimoX

API Reference

Class

MachineAccountQuotaChecker

Namespace ADPlayground.Domains
Assembly ADPlayground

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 optionalposition: 0
Maximum allowed quota value.
fetchQuota System.Func{System.String,System.Nullable{System.Int32}} = null optionalposition: 1
Optional function retrieving the quota for a domain.
enumerateDomains System.Func{System.Collections.Generic.IEnumerable{System.String}} = null optionalposition: 2
Optional function returning domains to check.

Methods

public Void CheckQuota() #
Returns: Void

Checks the MachineAccountQuota across all domains in the forest.

public Void CheckQuotaForDomain(String domainName = null) #
Returns: Void

Checks the quota for a single domain and logs a warning when it exceeds the threshold.

Parameters

domainName System.String = null optionalposition: 0
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 requiredposition: 0
Target domain.

Returns

Quota value or null when unavailable.

Properties

public Int32 Threshold { get; set; } #

Maximum allowed quota value before a warning is emitted.