Home Reference WMI Reference root CIMV2 Win32_StartupCommand
 

Win32_StartupCommand

The Win32_StartupCommand class represents a command that runs automatically when a user logs onto the computer system.

Quick Start

Properties

In this WMI class, all WMI properties are read-only. You can only read values but not change them.

Caption

Data type String

A short textual description (one-line string) of the CIM_Setting object.

Command

Data type String

The Command property indicates the string representing the command line run by the startup command.

Example: c:\winnt\notepad.exe myfile.txt.

Description

Data type String

A textual description of the CIM_Setting object.

Location

Data type String

The Location property indicates the path where the startup command resides on the disk file system.

'Startup','Common Startup','HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run','HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunServices'

LookupDomain

Data type String

Name

Data type String

The Name property indicates the filename of the startup command.

Example: FindFast

SettingID

Data type String

The identifier by which the CIM_Setting object is known.

User

Data type String

The User property indicates the user name for whom this startup command will run.

Example: mydomain\myname.

UserSID

Data type String

The 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

Methods

Examples

Help and Questions

  Community Content

You are cordially invited to add knowledge to this page. If you have sample code or additional information related to this WMI class, please share it. Use the comment form to send your information. We will edit and incorparate it into the reference library. Thank you!

Please do not use the comment form to submit questions. If you have questions or need assistance, visit our free forum: Help me with WMI.

Content last updated: 2013-12-27 12:27:03 (UTC).

Facebooktwittergoogle_pluspinterestlinkedinFacebooktwittergoogle_pluspinterestlinkedin