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
Enabled
Gets or sets whether the user account is enabled.
public BooleanOption Enabled { get; set; }
Property Value
FullName
Gets or sets the full name of the user account - for example "Steven Jones".
public string FullName { get; set; }
Property Value
LastLogin
Gets or sets the date and time when this account last logged into the system.
public DateTime LastLogin { get; set; }
Property Value
LastLoginString
Gets the date and time when this account last logged into the system.
public string LastLoginString { get; set; }
Property Value
Name
Gets or sets the name of this user account.
public string Name { get; set; }
Property Value
PasswordExpired
Gets or sets whether the password for this account has expired.
public BooleanOption PasswordExpired { get; set; }
Property Value
PasswordLastSet
Gets or sets the date and time when this account's password was last set.
public DateTime PasswordLastSet { get; set; }
Property Value
PasswordLastSetString
Getsthe date and time when this account's password was last set.
public string PasswordLastSetString { get; set; }
Property Value
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
Profile
Gets or sets the profile settings for the user.
public WindowsLocalUserProfileSettings Profile { get; set; }
Property Value
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
UserCannotChangePassword
Gets or sets whether the user cannot change their own password.
public BooleanOption UserCannotChangePassword { get; set; }
Property Value
Methods
CompareTo(WindowsLocalUser)
Compares two Windows local users to allow sorting alphabetically by name.
public int CompareTo(WindowsLocalUser other)
Parameters
other
WindowsLocalUserThe 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.