Share via


SetPowerState method of the CIM_ComputerSystem class

Sets the power state of the computer. The use of this method has been deprecated. Instead, use the SetPowerState method in the associated PowerManagementService class.

Syntax

uint32 SetPowerState(
  [in] uint32   PowerState,
  [in] datetime Time
);

Parameters

PowerState [in]

The Desired state for the ComputerSystem.

Full Power (1)

Power Save - Low Power Mode (2)

Power Save - Standby (3)

Power Save - Other (4)

Power Cycle (5)

Power Off (6)

Hibernate (7)

Soft Off (8)

Time [in]

Time indicates when the power state should be set, either as a regular date-time value or as an interval value (where the interval begins when the method invocation is received.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012 R2
Namespace
Root\CIMv2\Storage\iScsiTarget
MOF
SmIscsiTarget.mof
DLL
SMiSCSITargetProv.dll

See also

CIM_ComputerSystem