TestimoX

API Reference

Class

ServiceAccountInfo

Namespace ADPlayground
Assembly ADPlayground

Represents a service account with password, logon and SPN metadata.

Inheritance

  • Object
  • ServiceAccountInfo

Remarks

See usage examples in the unit tests for typical scenarios.

Constructors

Properties

public String SamAccountName { get; set; } #

Gets or sets the SAM account name.

public String DisplayName { get; set; } #

Gets or sets the display name.

public String DistinguishedName { get; set; } #

Gets or sets the distinguished name.

public String UserPrincipalName { get; set; } #

Gets or sets the user principal name.

public String DomainName { get; set; } #

Gets or sets the domain name the account belongs to.

public List<String> ServicePrincipalNames { get; set; } #

Gets or sets service principal names.

public Nullable<DateTime> LastLogon { get; set; } #

Gets or sets the lastLogon value.

public Nullable<DateTime> LastLogonTimestamp { get; set; } #

Gets or sets the lastLogonTimestamp value.

public Nullable<DateTime> PasswordLastSet { get; set; } #

Gets or sets the pwdLastSet value.

public Boolean Enabled { get; set; } #

Gets or sets a value indicating whether the account is enabled.

public Nullable<DateTime> MostRecentLogon { get; } #

Gets the most recent logon between LastLogon and LastLogonTimestamp.

public Int32 LastLogonDays { get; } #

Gets the number of days since the most recent logon, or -1 if never logged on.

public Int32 PasswordAgeDays { get; } #

Gets the number of days since the password was last set, or -1 if unknown.

public Int32 SpnCount { get; } #

Gets the number of configured service principal names.

public String FriendlySummary { get; } #

Gets a user friendly summary of the account.