Powershell script to activate HDR in Windows 10

你离开我真会死。 提交于 2020-12-07 05:03:01

问题


I've scoured the net for resources on this, to no avail. I cannot find the syntax to toggle HDR in Windows 10.

As it currently stands, the GUI function for this is buried in a menu, and is a huge pain in the ass to turn on and off per application as needed.

Ideally I'd like to see if there's an ability to specify per monitor, but given how wonky this implementation seems to be on Microsoft's part, just being able to activate it on my primary display would be enough.

Thank in advance for your help.


回答1:


You can do this by editing the registry.

Turn on:

New-ItemProperty -Path 'HKLM:\SYSTEM\ControlSet001\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0001' -Name 'FeatureTestControl' -PropertyType DWORD -Value '9240' -Force

Turn off:

New-ItemProperty -Path 'HKLM:\SYSTEM\ControlSet001\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0001' -Name 'FeatureTestControl' -PropertyType DWORD -Value '9250' -Force

After the change you have to restart the system to apply.

Registry entry and values from here: windowscentral: How to disable adaptive contrast on the Surface Pro and Surface Book

Please also note:

Some users have noted that any time there is a significant Windows update this setting is reset to default (9240), so you may need to redo this edit once or twice a year.



来源:https://stackoverflow.com/questions/61487861/powershell-script-to-activate-hdr-in-windows-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!