WmiSetBrightness method of the WmiMonitorBrightnessMethods class
The WmiSetBrightness method sets the display brightness of a computer monitor.
uint32 WmiSetBrightness( uint32 Timeout, uint8 Brightness );
Timeout, in seconds.
Brightness, in percent.
For an extended discussion of retrieving and setting monitor brightness, see the Scripting Guy's Use PowerShell to Report and Set Monitor Brightness blog topic.
The following PowerShell sample sets the brightness of the monitor to 50%.
$brightness = 50 $delay = 5 $myMonitor = Get-WmiObject -Namespace root\wmi -Class WmiMonitorBrightnessMethods $myMonitor.wmisetbrightness($delay, $brightness)
|Minimum supported client
|Minimum supported server
||Windows Server 2008