1

I have been trying multiple apps, but I do not know how to adjust Windows' screen brightness automatically. Is there a way this can be done through Task Scheduler?

To give a specific scenario, I'd like Task Scheduler to set the screen's brightness to its lowest setting daily at 10:00 PM and turn to 80% brightness when I turn on my computer. Is this possible?

2
  • Windows supports night light to turn the blue content down according to a schedule. I use f.lux which has more features. I find that reducing the blue light is enough, I don't have to dim the screens. Commented Jan 12, 2023 at 20:41
  • @RohitGupta I also use a night light feature, but I'd also like an automatic way to adjust the screen's brightness. And thanks to DrMoishe Pippik, I do now!
    – The Editor
    Commented Jan 12, 2023 at 21:21

1 Answer 1

2

You can use PowerShell directly, or in a .bat file, as below,

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

Replace 10 with 80 for 80% brightness, or a smaller integer to make it dimmer yet.

Now just add Scheduled Tasks calling the respective scripts at logon and at the specific time for dimming.

Good idea: That should serve as an effective reminder to shut down the PC and go to bed, but allow you to restart at usable brightness, if needed.

7
  • IT WORKED! I've been looking so long for a simple solution. Thanks to you, I was able to set it up in a few minutes. Now the screen's brightness can change on its own, and I don't even have to download a special app. Thank you!
    – The Editor
    Commented Jan 12, 2023 at 21:19
  • Actually, there's a problem now. When I start up my computer, the brightness doesn't always work. It didn't work today, for example. When I go to Task Scheduler, the task did trigger, apparently, but the "Last Run Result" says, "The operator or administrator has refused the request." Any thoughts as to why? (It works fine if I manually run the task, but that defeats the purpose, of course.)
    – The Editor
    Commented Jan 19, 2023 at 14:56
  • Have you tried creating as Administrator or SYSTEM, rather than as user? See superuser.com/questions/347751/…, for example. Commented Jan 19, 2023 at 17:04
  • That might have been the problem. I just changed the tasks for SYSTEM rather than user. I'll find out if it worked in the morning. Thanks!
    – The Editor
    Commented Jan 21, 2023 at 3:27
  • Unfortunately, the screen still did not work. I just checked Task Scheduler, and the app did try running today, but it said, as before, "The operator or administrator has refused the request." Interestingly, if I manually run the task, it works. However, having to manually run the task defeats the purpose, of course, so what other action might solve the problem?
    – The Editor
    Commented Jan 21, 2023 at 14:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .