BACK TO INDEX

Win32_StartupCommand
The Win32_StartupCommand class represents a command that runs automatically when a user logs onto the computer system.
NameSpace Path
\ROOT\CIMV2
PROPERTYSMS_REPORTCIMTYPEDESCRIPTION
CaptionStringA short textual description (one-line string) of the CIM_Setting object.
CommandStringThe Command property indicates the string representing the command line run by the startup command. Example: c:\winnt\notepad.exe myfile.txt.
DescriptionStringA textual description of the CIM_Setting object.
LocationStringThe Location property indicates the path where the startup command resides on the disk file system.
NameStringThe Name property indicates the filename of the startup command. Example: FindFast
SettingIDStringThe identifier by which the CIM_Setting object is known.
UserStringThe User property indicates the user name for whom this startup command will run. Example: mydomain\myname.
UserSIDStringThe UserSID property indicates the SID of the user for whom this startup command will run. That User property may be empty but UserSID still has a value if the user name can't be resolved (like in the case of a deleted user). The property is helpful to distinguish between commands associated w/ two different users with unresolved names. It may be NULL when the command is associated with items not actually identifying a user like All Users. Example:S-1-5-21-1579938362-1064596589-3161144252-1006
SAMPLE DATA INSTANCE
   [LOCALE(1033): ToInstance Amended]
   instance of Win32_StartupCommand
   {
    Caption = "desktop";
    Command = "desktop.ini";
    Description = "desktop";
    Location = "Startup";
    Name = "desktop";
    User = "NT AUTHORITY\\SYSTEM";
    UserSID = "S-1-5-18";
   };