Table of Contents

Class WindowsLocalUser

Namespace
CENTREL.XIA.Configuration.Types
Assembly
CENTREL.XIA.Configuration.Types.dll

Represents a local Windows user account.

public class WindowsLocalUser : GlobalSerializableClassicBase, IComparable<WindowsLocalUser>
Inheritance
WindowsLocalUser
Implements

Constructors

WindowsLocalUser()

Initializes a new instance of the CENTREL.XIA.Configuration.Types.WindowsLocalUser class.

public WindowsLocalUser()

Properties

Description

Gets or sets the description of this user account.

public string Description { get; set; }

Property Value

string

Enabled

Gets or sets whether the user account is enabled.

public BooleanOption Enabled { get; set; }

Property Value

BooleanOption

FullName

Gets or sets the full name of the user account - for example "Steven Jones".

public string FullName { get; set; }

Property Value

string

LastLogin

Gets or sets the date and time when this account last logged into the system.

public DateTime LastLogin { get; set; }

Property Value

DateTime

LastLoginString

Gets the date and time when this account last logged into the system.

public string LastLoginString { get; set; }

Property Value

string

Name

Gets or sets the name of this user account.

public string Name { get; set; }

Property Value

string

PasswordExpired

Gets or sets whether the password for this account has expired.

public BooleanOption PasswordExpired { get; set; }

Property Value

BooleanOption

PasswordLastSet

Gets or sets the date and time when this account's password was last set.

public DateTime PasswordLastSet { get; set; }

Property Value

DateTime

PasswordLastSetString

Getsthe date and time when this account's password was last set.

public string PasswordLastSetString { get; set; }

Property Value

string

Remarks

This setting is volatile and therefore ignored by the data comparer.

PasswordNeverExpires

Gets or sets whether the password for this account should never expire.

public BooleanOption PasswordNeverExpires { get; set; }

Property Value

BooleanOption

Profile

Gets or sets the profile settings for the user.

public WindowsLocalUserProfileSettings Profile { get; set; }

Property Value

WindowsLocalUserProfileSettings

Sid

Gets or sets the security identifier (SID) of this user account in SDDL format - for example "S-1-5-21-4044583538-1407844612-3414058850-1003".

public string Sid { get; set; }

Property Value

string

UserCannotChangePassword

Gets or sets whether the user cannot change their own password.

public BooleanOption UserCannotChangePassword { get; set; }

Property Value

BooleanOption

Methods

CompareTo(WindowsLocalUser)

Compares two Windows local users to allow sorting alphabetically by name.

public int CompareTo(WindowsLocalUser other)

Parameters

other WindowsLocalUser

The CENTREL.XIA.Configuration.Types.WindowsLocalUser object to compare to.

Returns

int

The sort order of the two CENTREL.XIA.Configuration.Types.WindowsLocalUser objects.

ToString()

Returns the name of the user or "{Unknown}" if the user is unknown.

public override string ToString()

Returns

string

The name of the user.