Open jay-chorus opened 6 months ago
Not sure what would cause the WmiSetBrightness
method to be missing. The way that ChangeDisplayBrightness.ps1
sets brightness matches the example script in Microsoft docs here.
Could you check your version of PowerShell by running powershell $PSVersionTable
in a Command Prompt to ensure you have the latest version installed and on your PATH?
If you are using a desktop that doesn't have screen brightness control built-in to Windows, you may have better luck with this script: https://github.com/t1m0thyj/WDD-scripts/pull/22
After some troubleshooting, I narrowed it down to an unknown conflict with Powershell7. Apparently having Powershell7 installed will cause windows to use that as a default when running scripts. I still think the exact cause is unknown since manually running the brightness command on line 22, in an instance of Powershell7, will still give the same output as regular Windows Powershell
Steps to Reproduce:
Are you using the Microsoft Store version of WDD?: No