TestimoX

API Reference

Class

AdminCountReporter

Namespace ADPlayground
Assembly ADPlayground

Retrieves accounts with adminCount=1 across the current forest and trusted forests.

Inheritance

  • Object
  • AdminCountReporter

Remarks

See usage examples in the unit tests for typical scenarios.

Constructors

public AdminCountReporter(Func<String, IEnumerable<AdminAccountInfo>> fetchAccounts = null, Func<IEnumerable<ValueTuple<String, IEnumerable<String>>>> enumerateForests = null) #

Initializes a new instance of the AdminCountReporter class.

Parameters

fetchAccounts System.Func{System.String,System.Collections.Generic.IEnumerable{ADPlayground.AdminAccountInfo}} = null optionalposition: 0
Delegate returning adminCount accounts for a domain.
enumerateForests System.Func{System.Collections.Generic.IEnumerable{System.ValueTuple{System.String,System.Collections.Generic.IEnumerable{System.String}}}} = null optionalposition: 1
Delegate returning forests and their domains.

Methods

public IEnumerable<AdminCountReportEntry> GetReport() #
Returns: IEnumerable<AdminCountReportEntry>

Retrieves adminCount accounts from all forests returned by the enumerator.

Returns

Collection of report entries.