Class WindowsStartupCommand
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents a command that is executed at startup on a Windows machine.
public class WindowsStartupCommand : GlobalSerializableClassicBase, IComparable<WindowsStartupCommand>
- Inheritance
-
WindowsStartupCommand
- Implements
Constructors
WindowsStartupCommand()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.WindowsStartupCommand class.
public WindowsStartupCommand()
Properties
Command
Gets or sets the full command line is to be executed - for example "%ProgramFiles%\Windows Defender\MSASCuiL.exe".
public string Command { get; set; }
Property Value
CommandIndex
Gets the unique index for this command used by the data comparer - in the format "Command [Username]".
public string CommandIndex { get; }
Property Value
Description
Gets or sets the description of this startup command - for example "SecurityHealth".
public string Description { get; set; }
Property Value
Location
Gets or sets the location where this startup command is configured - for example "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run".
public string Location { get; set; }
Property Value
User
Gets or sets the name of the user for which this command will execute - for example "NT AUTHORITY\LOCAL SERVICE" or "Public".
public string User { get; set; }
Property Value
Methods
CompareTo(WindowsStartupCommand)
Compares two Windows startup commands to allow sorting alphabetically by description.
public int CompareTo(WindowsStartupCommand other)
Parameters
other
WindowsStartupCommandThe startup command to compare to.
Returns
- int
The sort order of the two Windows startup commands.
ToString()
Returns the description of this startup command - for example "Startup Application".
public override string ToString()