The following line in PowerShell works (brightness changes to 30):
(Get-WmiObject -Namespace root\wmi -Class WmiMonitorBrightnessMethods).WmiSetBrightness(0,30)
However, when using WMIC I get the following error:
C:\>wmic /NAMESPACE:\\root\wmi PATH WmiMonitorBrightnessMethods CALL WmiSetBrightness Brightness=30 Timeout=0
Executing (WmiMonitorBrightnessMethods)->WmiSetBrightness()
ERROR:
Description = Invalid method Parameter(s)
What is the issue and how can I get this to work?
Turns out it works if I add a
WHEREclause:Not very intuitive, to say the least, but oh well.