- @echo off
- @REM 显示器亮度
- powercfg /setacvalueindex scheme_current sub_video aded5e82-b909-4619-9949-f5d71dac0bcb 100
- @REM powercfg /setdcvalueindex scheme_current sub_video aded5e82-b909-4619-9949-f5d71dac0bcb 100
-
- @REM 显示器变暗的亮度
- powercfg /setacvalueindex scheme_current sub_video f1fbfde2-a960-4165-9f88-50667911ce96 100
- @REM powercfg /setdcvalueindex scheme_current sub_video f1fbfde2-a960-4165-9f88-50667911ce96 100
-
- @REM 关闭显示器时间
- powercfg /setacvalueindex scheme_current sub_video 3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e 0
- @REM powercfg /setdcvalueindex scheme_current sub_video 3c0bc021-c8a8-4e07-a973-6b14cbcb2b7e 0
-
- powershell -c "Get-WmiObject -Class WmiMonitorBrightnessMethods -Namespace root\wmi|ForEach-Object{$_.WmiSetBrightness(0,100)}"
- pause
- exit /b
复制代码 以管理员运行 |