Powercfg(系统冷却策略) [英] Powercfg (System Cooling Policy)

查看:115
本文介绍了Powercfg(系统冷却策略)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个PowerShell脚本,该脚本只会创建Power Cooling Policy的设置,其中Battery需要设置为Passive并Plug in in Active,并且只能在笔记本电脑上运行,脚本也会运行在桌面上,但我不希望它在桌面上运行
我希望桌面保持其设置。

I'd like to create a PowerShell script that will only create the setting for Power Cooling Policy where the Battery needs to be set to Passive and Plugged in to Active and only work on a laptop the script will also run on a desktop but I don't want it run on a Desktop I want the desktop to keep its settings.

此命令无效:

Powercfg -setdcvalueindex 54533251-82be-4824- 96c1-47b60b740d00 94D3A615-A899-4AC5-AE2B-E4D8F634367F 381b4222-f694-41f0-9685-ff5bb260df2e

Powercfg -setdcvalueindex 54533251-82be-4824-96c1-47b60b740d00 94D3A615-A899-4AC5-AE2B-E4D8F634367F 381b4222-f694-41f0-9685-ff5bb260df2e

推荐答案

尝试打击regkey,这就是我们所做的:

try to punch the regkey, that is what we do:

      (https://support.microsoft.com/kb/322756/           )    
      (https://support.microsoft.com/kb/322756/            )    


这篇关于Powercfg(系统冷却策略)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆