powershell - 如何使用 cmd/Powershell 或其他方式打开电源选项 > 系统设置

标签 powershell cmd powercfg

<分区>

在网上看了几天之后,我没有其他选择可以问你我的问题。

如何使用 cmd/run/powershell(或其他)打开以下控制面板:

Choose what closing the lid does

我知道如何输入 powercfg.cpl,但我无法打开它到达那里:

Lid Options

我也知道可以使用 cmd 更改电源计划,但这不是我必须这样做的方式。

在此先感谢您,祝您今天愉快 :D

最佳答案

%windir%\system32\control.exe /name Microsoft.PowerOptions /page  pageGlobalSettings

参见 this page控制面板项目的规范名称

关于powershell - 如何使用 cmd/Powershell 或其他方式打开电源选项 > 系统设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28602301/

相关文章:

powershell - powershell 中 Get-ChildItem 命令的默认结果集顺序是什么?

javascript - Grunt 由于警告而中止

windows - 批处理文件变量在这种特殊情况下无法打印

windows - 如果Windows批处理文件超过一分钟,请立即退出循环

powershell - 在 PowerShell 中,在声明字符串数组参数时,是否可以使用 Test-Path(或其他东西)来验证多个文件

html - 文本不同时格式化文本

powershell - 使用 PowerShellGet 安装 PowerShell 模块后写入配置文件

c# - 为什么我的程序中 "powercfg"命令的输出与在 powershell 中运行时不同

python - 如何使用Python通过powercfg更改桌面背景设置幻灯片?