次の方法で共有


MSFT_ServerServiceDetail class

Represents the details about an installed system service on the server.

The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties.

Syntax

[ClassVersion("1.0.0"), dynamic, provider("mgmtprovider"), AMENDMENT]
class MSFT_ServerServiceDetail
{
  string  Name;
  string  DisplayName;
  string  Description;
  uint32  StartupType;
  boolean IsDelayedAutoStart;
  boolean IsTriggered;
  uint32  SupportedControlCodes;
  uint32  Status = 0;
  uint64  ExitCode = 0;
  string  DependentServices[];
};

Members

The MSFT_ServerServiceDetail class has these types of members:

Properties

The MSFT_ServerServiceDetail class has these properties.

DependentServices

Data type: string array

Access type: Read-only

The list of names of dependent services.

Description

Data type: string

Access type: Read-only

The description of the service.

DisplayName

Data type: string

Access type: Read-only

The localized name of the service.

ExitCode

Data type: uint64

Access type: Read-only

The service exit code reported by the Service Control Manager.

IsDelayedAutoStart

Data type: boolean

Access type: Read-only

Is the service auto delayed start.

IsTriggered

Data type: boolean

Access type: Read-only

Does the service has other start triggers.

Name

Data type: string

Access type: Read-only

The name of the service.

StartupType

Data type: uint32

Access type: Read-only

The startup type of the service.

Boot (0)

System (1)

Auto (2)

Demand (3)

Disabled (4)

Status

Data type: uint32

Access type: Read-only

The current status of the service.

Not Found (0)

Stopped (1)

Start Pending (2)

Stop Pending (3)

Running (4)

Continue Pending (5)

Pause Pending (6)

Paused (7)

SupportedControlCodes

Data type: uint32

Access type: Read-only

Qualifiers: BitMap ("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10"), BitValues ("Stop", "Pause Continue", "Shutdown", "Parameter Change", "Net Binding Change", "Hardware Profile Change", "Power Event", "Session Change", "PreShutdown", "Time Change", "Trigger Event")

The control codes supported by the service.

0

Stop

1

Pause Continue

2

Shutdown

3

Parameter Change

4

Net Binding Change

5

Hardware Profile Change

6

Power Event

7

Session Change

8

PreShutdown

9

Time Change

10

Trigger Event

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\Windows\ServerManager
MOF
MgmtProvider.mof
DLL
MgmtProvider.dll