TestimoX

API Reference

Class

StaleAccountsQueryOptions

Namespace ADPlayground.DirectoryOps
Assembly ADPlayground
Modifiers sealed

Options for querying stale user/computer accounts using lastLogonTimestamp and/or pwdLastSet.

Inheritance

  • Object
  • StaleAccountsQueryOptions

Constructors

public StaleAccountsQueryOptions() #

Properties

public DirectoryAccountKind Kind { get; set; } #

Account type scope.

public Boolean EnabledOnly { get; set; } #

When true, exclude disabled accounts.

public Boolean ExcludeCritical { get; set; } #

When true, exclude critical system objects (isCriticalSystemObject=TRUE).

public Nullable<Int32> DaysSinceLogon { get; set; } #

Optional days-since-last-logon threshold (based on lastLogonTimestamp).

public Nullable<Int32> DaysSincePasswordSet { get; set; } #

Optional days-since-password-set threshold (based on pwdLastSet).

public CriteriaMatch Match { get; set; } #

How to combine logon/password criteria when both are specified.

public String ServerOrDomain { get; set; } #

Optional server name (DC host) or domain name. When null/empty, derived from BaseDn. When set, the query is executed against that server/domain.

public String BaseDn { get; set; } #

LDAP base DN (search root) for the query.

public DateTime ReferenceUtc { get; set; } #

Reference UTC time used to calculate thresholds and "days since".

public Int32 MaxResults { get; set; } #

Maximum number of results to return.