如下:

$monitor = Get-CimInstance -Namespace root/WMI -ClassName WmiMonitorBrightnessMethods
Invoke-CimMethod -InputObject $monitor -MethodName wmisetBrightness -Arguments @{Timeout= '10'; Brightness='25'}

参考 https://learn.microsoft.com/zh-cn/powershell/module/cimcmdlets/invoke-cimmethod?view=powershell-7.2

posted on 2023-07-09 10:12  落寞的雪  阅读(46)  评论(0编辑  收藏  举报