windows 用命令行进入睡眠

方法1:

使用windows本身的命令,首先要关闭休眠,否则只能进入休眠状态
powercfg -hibernate off
然后如下命令睡眠
Rundll32.exe Powrprof.dll,SetSuspendState Sleep

方法2:

直接上微软官方网站下个软件PsShutdown.exe,请前往此页点击下载
然后在命令行里(运行CMD)进入解压后的文件夹中输入:psshutdown.exe -d -t 0
输入psshutdown.exe可以显示帮助

System Power States

To the user, the system appears to be either on or off. There are no other detectable states. However, the system supports multiple power states that correspond to the power states defined in the Advanced Configuration and Power Interface (ACPI) specification. The following table lists the power states from highest to lowest power consumption.

继续阅读