Partager via


SetPowerState method of the MSISCSITARGET_StorageVolume class

Sets the power state of the device. Deprecated, instead use the SetPowerState method in the associated power management service instance.

This method is inherited from the CIM_LogicalDevice class.

Syntax

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

Parameters

PowerState [in]

Specifies the power state to set.

The possible values are.

Full Power (1)

Power Save - Low Power Mode (2)

Power Save - Standby (3)

Power Save - Other (4)

Power Cycle (5)

Power Off (6)

Time [in]

Specifies 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.

Return value

Returns zero on success; otherwise returns an error code.

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

MSISCSITARGET_StorageVolume