Partager via


SetPerformanceCollectorState method of the MSFT_ServerManagerTasks class

Configures the state of a Data Collector Set in Performance Logs & Alerts.

Syntax

uint32 SetPerformanceCollectorState(
  [in] string CollectorName,
  [in] uint8  State
);

Parameters

CollectorName [in]

The name of the Data Collector Set in Performance Logs & Alerts.

State [in]

The required state of the Data Collector Set.

Stopped (0)

Running (1)

Requirements

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

See also

MSFT_ServerManagerTasks