The Win32_BaseService class represents any service or process that is not owned by a specific user and that provides an interface to some functionality that is supported by the system. This class is not included in a default hardware inventory operation.
Example: The Dynamic Host Configuration Protocol (DHCP) client service on a Windows NT system.
Table C.3 Base Services Attribute Class (SMS_BaseService)
Property (Bold if collected) | Data type | Example | Notes |
---|---|---|---|
AcceptPause | uint32 | 0 | Determines whether the service can be paused.
Values are: If the value is True, the service can be paused. |
AcceptStop | uint32 | 0 | Determines whether the service can be stopped.
Values are: If the value is True, the service can be stopped. |
Caption | string | "Network DDE" | Describes the object. Maximum length is 64 characters. |
Description | string | "Network DDE" | Describes the object. |
DesktopInteract | uint32 | 0 | Determines whether the service can create or communicate with windows on the desktop.
Values are: If the value is True, the service can create or communicate with windows on the desktop. |
DisplayName | string | "Atdisk" | Indicates the display name of the service. DisplayName accepts the same value as the Base Service class Name property. |
GroupID | uint32 | 2 | Within one ResourceId (one SMS client), GroupID distinguishes one instance of a class from another. Objects with the same ResourceId and GroupID are deltas of one another, describing the same hardware inventory instance at different points in time. This is not a collectable property. |
ErrorControl | string | Indicates the level of error control for the service. | |
InstallDate | datetime | See “Date and Time Formats” at the beginning of Appendix B. | Indicates when the object was installed. The absence of a value does not indicate that the object is not installed. |
Name | string | "NetDDE" | Key. Defines the label that the object is known by. Maximum length is 256 characters. |
PathName | string | "C:\\WINNT40\\ system32\\ netdde.exe" | Indicates the path of the executable file that implements the service. |
ResourceId | uint32 | 42 | Key. Inventory items with the same ResourceId were all discovered on the same SMS client. The ResourceId identifies the SMS client.
A ResourceId is an integer generated for the sake of SQL; it is not unique outside the site and should be used only for short-term querying purposes. It is not a collectable property. |
RevisionID | uint32 | 1 | Objects with the same ResourceId and GroupID are deltas, differentiated from one another by RevisionID number. The highest number is the most recent update. This is not a collectable property. |
ServiceType | string | "SERVICE_ INTERACTIVE_ PROCESS" | Indicates the type of service. For a SERVICE_WIN32 service, you can set the SERVICE_INTERACTIVE_PROCESS flag to indicate that the service process can interact with the desktop.
Values are: SERVICE_WIN32_OWN_PROCESS, SERVICE_WIN32_SHARE_PROCESS, SERVICE_KERNEL_DRIVER, SERVICE_FILE_SYSTEM_DRIVER, SERVICE_INTERACTIVE_PROCESS. |
Started | uint32 | 1 | A Boolean that indicates whether the service has been started or stopped.
Values are: If the value is True, the service has been started. |
StartMode | string | "Automatic" | Indicates the start mode of the Win32 base service.
Values are: |
StartName | string | "LocalSystem" | Indicates the account name under which to run the service. |
State | string | "Stopped" | Indicates the state of the base service.
Values are: |
Status | string | "OK" | Indicates the current status of the object:
Values are: Maximum length is 10 characters. |
SystemName | string | "H52B2NT4" | Indicates the scoping system’s name. Maximum length is 256 characters. |
TagId | uint32 | 1 | Indicates the tag identifier of the service. |
TimeStamp | datetime | See “Date and Time Formats” at the beginning of Appendix B. | Indicates when the information in this object was last revised. This is not a collectable property. |