Home Reference WMI Reference root CIMV2 Win32_ServiceControl
 

Win32_ServiceControl

Instances of this class represent instrctions for controlling both installed and uninstalled services.

Quick Start

Properties

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

Arguments

Data type String

A list of arguments for starting services. The arguments are separated by null characters [~]. For example, the list of arguments One, Two, and Three are listed as: One[~]Two[~]Three.

Caption

Data type String

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

Description

Data type String

A textual description of the CIM_Setting object.

Event

Data type String

A bit map representing the operations for which this object applies. The following are the valid values

Hexadecimal

Decimal

Description

0x001

1

Starts the service during the StartServices action.

0x002

2

Stops the service during the StopServices action. \nn 0x004

4

0x008

8

Deletes the service during the DeleteServices action.

The following values are only used during an uninstall

Hexadecimal

Decimal

Description

0x010

16

Starts the service during the StartServices action.

0x020

32

Stops the service during the StopServices action.

0x040

64

0x080

128

Deletes the service during the DeleteServices action.

ID

Data type String

A unique key identifying this service control item within its product.

Name

Data type String

ProductCode

Data type String

The product code for the product of which this service control is a part.

ProductKey

Data type String

SettingID

Data type String

The identifier by which the CIM_Setting object is known.

Wait

Data type UInt16

A value of 1 in this column means to wait until the service actually completes before proceeding. This implies that the event is critical to the install, and that if the event fails the resulting error cannot be ignored. A value of 0 in this column means to wait only until the service control manager (SCM) reports that this service is in a pending state.

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:26:49 (UTC).

Facebooktwittergoogle_pluspinterestlinkedinFacebooktwittergoogle_pluspinterestlinkedin