【发布时间】:2016-07-15 19:06:03
【问题描述】:
我想编写一个脚本,将“关闭显示器”和“让计算机进入睡眠状态”的电源设置更改为“从不”(参见随附的屏幕截图)。 我知道如何使用以下方法设置上述时间:
powercfg -change -monitor-timeout-ac [time]
powercfg -change -monitor-timeout-dc [time]
powercfg -change -standby-timeout-ac [time]
powercfg -change -standby-timeout-dc [time]
但我找不到如何将其设置为“从不”。
我需要使用什么语法?
谢谢!
【问题讨论】:
标签: windows powershell settings sleep