CIM_ComputerSystem 类的 SetPowerState 方法
设置计算机的电源状态。 已弃用此方法。 请改用关联的 PowerManagementService 类中的 SetPowerState 方法。
语法
uint32 SetPowerState(
[in] uint32 PowerState,
[in] datetime Time
);
参数
-
PowerState [in]
-
计算机系统的所需状态。
-
全功率 (1)
-
省电 - 低功耗模式 (2)
-
省电 - 待机 (3)
-
省电 - 其他 (4)
-
Power Cycle (5)
-
关机 (6)
-
休眠 (7)
-
软关闭 (8)
时间 [in]
时间指示何时应设置电源状态,可以是常规日期时间值,也可以是间隔值, () 收到方法调用时间隔开始。
要求
要求 | 值 |
---|---|
最低受支持的客户端 |
Windows 8.1 |
最低受支持的服务器 |
Windows Server 2012 R2 |
命名空间 |
Root\virtualization\v2 |
MOF |
|
DLL |
|