BACK TO INDEX

Win32_Service
The Win32_Service class represents a service on a Win32 computer system. A service application conforms to the interface rules of the Service Control Manager (SCM) and can be started by a user automatically at system boot through the Services control panel utility, or by an application that uses the service functions included in the Win32 API. Services can execute even when no user is logged on to the system.
NameSpace Path
\ROOT\CIMV2\SMS
PROPERTYSMS_REPORTCIMTYPEDESCRIPTION
AcceptPauseBooleanThe AcceptPause property indicates whether the service can be paused. Values: TRUE or FALSE. A value of TRUE indicates the service can be paused.
AcceptStopBooleanThe AcceptStop property indicates whether the service can be stopped. Values: TRUE or FALSE. A value of TRUE indicates the service can be stopped.
CaptionStringThe Caption property is a short textual description (one-line string) of the object.
CheckPointUInt32The CheckPoint property specifies a value that the service increments periodically to report its progress during a lengthy start, stop, pause, or continue operation. For example, the service should increment this value as it completes each step of its initialization when it is starting up. The user interface program that invoked the operation on the service uses this value to track the progress of the service during a lengthy operation. This value is not valid and should be zero when the service does not have a start, stop, pause, or continue operation pending.
CreationClassNameStringCreationClassName indicates the name of the class or the 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.
DescriptionStringThe Description property provides a textual description of the object.
DesktopInteractBooleanThe DesktopInteract property indicates whether the service can create or communicate with windows on the desktop. Values: TRUE or FALSE. A value of TRUE indicates the service can create or communicate with windows on the desktop.
DisplayNameStringThe DisplayName property indicates the display name of the service. This string has a maximum length of 256 characters. The name is case-preserved in the Service Control Manager. DisplayName comparisons are always case-insensitive. Constraints: Accepts the same value as the Name property. Example: Atdisk.
ErrorControlStringIf this service fails to start during startup, the ErrorControl property specifies the severity of the error. The value indicates the action taken by the startup program if failure occurs. All errors are logged by the computer system. The computer system does not notify the user of "Ignore" errors. With "Normal" errors the user is notified. With "Severe" errors, the system is restarted with the last-known-good configuration. Finally, on"Critical" errors the system attempts to restart with a good configuration.
ExitCodeUInt32The ExitCode property specifies a Win32 error code defining any problems encountered in starting or stopping the service. This property is set to ERROR_SERVICE_SPECIFIC_ERROR (1066) when the error is unique to the service represented by this class, and information about the error is available in the ServiceSpecificExitCode member. The service sets this value to NO_ERROR when running, and again upon normal termination.
InstallDateDateTimeThe InstallDate property is datetime value indicating when the object was installed. A lack of a value does not indicate that the object is not installed.
NameStringThe Name property uniquely identifies the service and provides an indication of the functionality that is managed. This functionality is described in more detail in the object's Description property.
PathNameStringThe PathName property contains the fully qualified path to the service binary file that implements the service. Example: \SystemRoot\System32\drivers\afd.sys
ProcessIdUInt32The ProcessId property specifies the process identifier of the service. Example: 324
ServiceSpecificExitCodeUInt32The ServiceSpecificExitCode property specifies a service-specific error code for errors that occur while the service is either starting or stopping. The exit codes are defined by the service represented by this class. This value is only set when the ExitCodeproperty value is ERROR_SERVICE_SPECIFIC_ERROR, 1066.
ServiceTypeStringThe ServiceType property supplies the type of service provided to calling processes.
StartedBooleanStarted is a boolean indicating whether the service has been started (TRUE), or stopped (FALSE).
StartModeStringThe StartMode property indicates the start mode of the Win32 base service. "Boot" specifies a device driver started by the operating system loader. This value is valid only for driver services. "System" specifies a device driver started by the IoInitSystem function. This value is valid only for driver services. "Automatic" specifies a service to be started automatically by the service control manager during system startup. "Manual" specifies a service to be started by the service control manager when a process calls the StartService function. "Disabled" specifies a service that can no longer be started.
StartNameStringThe StartName property indicates the account name under which the service runs. Depending on the service type, the account name may be in the form of "DomainName\Username". The service process will be logged using one of these two forms when it runs. If the account belongs to the built-in domain, ".\Username" can be specified. If NULL is specified, the service will be logged on as the LocalSystem account. For kernel or system level drivers, StartName contains the driver object name (that is, \FileSystem\Rdr or \Driver\Xns) which the input and output (I/O) system uses to load the device driver. Additionally, if NULL is specified, the driver runs with a default object name created by the I/O system based on the service name. Example: DWDOM\Admin.
StateStringThe State property indicates the current state of the base service.
StatusStringThe Status property is a string indicating the current status of the object. Various operational and non-operational statuses can be defined. Operational statuses are "OK", "Degraded" and "Pred Fail". "Pred Fail" indicates that an element may be functioning properly but predicting a failure in the near future. An example is a SMART-enabled hard drive. Non-operational statuses can also be specified. These are "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 on-line, yet the managed element is neither "OK" nor in one of the other states.
SystemCreationClassNameStringThe scoping System's CreationClassName.
SystemNameStringThe name of the system that hosts this service
TagIdUInt32The TagId property specifies a unique tag value for this service in the group. A value of 0 indicates that the service has not been assigned a tag. A tag can be used for ordering service startup within a load order group by specifying a tag order vector in the registry located at: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\GroupOrderList. Tags are only evaluated for Kernel Driver and File System Driver start type services that have "Boot" or "System" start modes.
WaitHintUInt32The WaitHint property specifies the estimated time required (in milliseconds) for a pending start, stop, pause, or continue operation. After the specified amount of time has elapsed, the service makes its next call to the SetServiceStatus function with either an incremented CheckPoint value or a change in Current State. If the amount of time specified by WaitHint passes, and CheckPoint has not been incremented, or the Current State has not changed, the service control manager or service control program assumes that an error has occurred.
SAMPLE DATA INSTANCE
   [LOCALE(1033): ToInstance Amended]
   instance of Win32_Service
   {
    AcceptPause = FALSE;
    AcceptStop = FALSE;
    Caption = "Application Experience Lookup Service";
    CheckPoint = 0;
    CreationClassName = "Win32_Service";
    Description = "Processes application compatibility lookup requests for applications as they are launched.";
    DesktopInteract = FALSE;
    DisplayName = "Application Experience Lookup Service";
    ErrorControl = "Normal";
    ExitCode = 0;
    Name = "AeLookupSvc";
    PathName = "C:\\WINDOWS\\system32\\svchost.exe -k netsvcs";
    ProcessId = 888;
    ServiceSpecificExitCode = 0;
    ServiceType = "Share Process";
    Started = TRUE;
    StartMode = "Auto";
    StartName = "LocalSystem";
    State = "Running";
    Status = "OK";
    SystemCreationClassName = "Win32_ComputerSystem";
    SystemName = "SCCM01";
    TagId = 0;
    WaitHint = 0;
   };