TestimoX

API Reference

Class

OrphanedAccountRemediator

Namespace ADPlayground
Assembly ADPlayground
Modifiers static

Provides methods to locate and remediate stale privileged accounts.

Inheritance

  • Object
  • OrphanedAccountRemediator

Methods

public static Void DeleteAccount(String samAccountName, String domainName = null) #
Returns: Void

Deletes the specified account.

Parameters

samAccountName System.String requiredposition: 0
SAM account name.
domainName System.String = null optionalposition: 1
Optional domain name.
public static Void DisableAccount(String samAccountName, String domainName = null) #
Returns: Void

Disables the specified account.

Parameters

samAccountName System.String requiredposition: 0
SAM account name.
domainName System.String = null optionalposition: 1
Optional domain name.
public static IEnumerable<String> GetOrphanedAccounts(String domainName, Int32 maxInactiveDays) #
Returns: IEnumerable<String>

Retrieves admin and service accounts inactive for the specified number of days.

Parameters

domainName System.String requiredposition: 0
Optional domain to query.
maxInactiveDays System.Int32 requiredposition: 1
Days without logon activity.

Returns

Collection of SAM account names.