- @echo off
- for /f "tokens=3" %%a in ('powercfg /l ^|find ") *"') do set pws=%%a
- ::设置CPU性能百分比
- POWERCFG /SETACVALUEINDEX %pws% SUB_PROCESSOR 893dee8e-2bef-41e0-89c6-b55d0929964c 100
- POWERCFG /SETACVALUEINDEX %pws% SUB_PROCESSOR bc5038f7-23e0-4960-96da-33abaf5935ec 100
- exit
复制代码 番外:查询当前电源设置项参数信息
powercfg /query |