Win32_ApplicationService class

The Win32_ApplicationService WMI class represents any installed or advertised component or application available on the system. Instances of this class include all properly installed and instrumented executable files.

Note  For more information about support or requirements for installation on a specific operating system, see Operating System Availability of WMI Components.

 

The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties. Properties and methods are in alphabetic order, not MOF order.

Syntax

[Provider("MSIProv"), Dynamic]
class Win32_ApplicationService : CIM_Service
{
  string   Caption;
  string   CreationClassName;
  string   Description;
  datetime InstallDate;
  string   Name;
  boolean  Started;
  string   StartMode;
  string   Status;
  string   SystemCreationClassName;
  string   SystemName;
};

Members

The Win32_ApplicationService class has these types of members:

  • Methods
  • Properties

Methods

The Win32_ApplicationService class has these methods.

Method Description
StartService

Places the service in the started state.

StopService

Places the service in the stopped state.

 

Properties

The Win32_ApplicationService class has these properties.

Caption

Data type: string

Access type: Read-only

Short textual description (one-line) of the object.

CreationClassName

Data type: string

Access type: Read-only

Name of the class or subclass used in the creation of an instance. When used with the other key properties of this class, this property allows all instances of this class and its subclasses to be uniquely identified.

Description

Data type: string

Access type: Read-only

Textual description of the object.

InstallDate

Data type: datetime

Access type: Read-only

Date and time object was installed. This property does not need a value to indicate that the object is installed.

Name

Data type: string

Access type: Read-only

Unique identifier of the service which provides an indication of the functionality that is managed. This functionality is described in more detail in the object's Description property.

Started

Data type: boolean

Access type: Read-only

If TRUE, service has been started.

StartMode

Data type: string

Access type: Read-only

Service can be started automatically started by a operating system, or only started upon request. Values are:

"Automatic"

"Manual"

Status

Data type: string

Access type: Read-only

Current status of the object. Various operational and nonoperational statuses can be defined. Operational statuses include: "OK", "Degraded", and "Pred Fail" (an element, such as a SMART-enabled hard disk drive, may be functioning properly but predicting a failure in the near future). Nonoperational statuses include: "Error", "Starting", "Stopping", and "Service". The latter, "Service", could apply during mirror-resilvering of a disk, reload of a user permissions list, or other administrative work. Not all such work is online, yet the managed element is neither "OK" nor in one of the other states.

Values are:

"OK"

"Error"

"Degraded"

"Unknown"

"Pred Fail"

"Starting"

"Stopping"

"Service"

SystemCreationClassName

Data type: string

Access type: Read-only

Type name of the system that hosts the service.

SystemName

Data type: string

Access type: Read-only

Name of the system that hosts the service.

Remarks

The Win32_ApplicationService class is derived from CIM_Service.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Namespace

Root\CIMV2

MOF

Msi.mof

DLL

MsiProv.dll

See also

Installed Applications Classes