Friday, January 31, 2014

PowerShell Tips : Changing Monitor brightness using PowerShell.


 Do, you ever tried to change the monitor brightness using PowerShell. If not, than go and try it. It’s too cool.

You can use the below “WmiMonitorBrightnessMethods” class to set the brightness of the monitor. You need to use “WmiSetBrightness” method of the class to set brightness.

Do this:

1.       Set your monitor brightness to the full.

2.       Run the below command and see the result


(Get-WmiObject -Namespace root/WMI -Class WmiMonitorBrightnessMethods).WmiSetBrightness(1,20)




Amazed, Your monitor brightness will be set to 20.  You can set the value of brightness from 0-100 .

Just change the value of 20 in above command from 0-100.

if you want you can convert it to function too J ..

Go and test it J .

In-case you got an error, “Not Supported” that means you display driver won’t support it.


Happy Weekend.


Aman Dhally

clip_image017 clip_image018 clip_image019 clip_image020  clip_image021



No comments:

Post a Comment