I want to make a reg file to automatically change the key KMD_EnableBrightnessInterface2 from 1 to 0 in the following string. This way I can use it on another computer.

HKEY_LOCAL_MACHINE \ SYSTEM \ ControlSet001 \ Control\Class \ {4d36e968-e325-11ce-bfc1-08002be10318} \ 0000 \KMD_EnableBrightnessInterface2

The folder 0000 contains many key values.
I can right click the folder 0000 and export it but I don't want to export the whole folder.
When I right click the key: KMD_EnableBrightnessInterface2 it does not give me the option to export it. I only have the option to Modify/Modify Binary Data/Delete/Rename
That's the only key I need to export

Your advice would be appreciated.

Kind regards
Chris

Registry_.JPG

Dani AI

Generated

A short expert note that expands on 's export/edit approach and 's suggestion.

The .reg method shown in the thread is fine: registry scripts may contain only the single key/value and must start with the header Windows Registry Editor Version 5.00; a .reg can then be double‑clicked or imported silently with regedit /s. (support.microsoft.com)

If exporting the whole 0000 branch is undesirable, two safe alternatives avoid manual .reg editing and change only the one DWORD:

rem (Command Prompt, elevated)
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000" /v KMD_EnableBrightnessInterface2 /t REG_DWORD /d 0 /f
# (PowerShell, run as Administrator)
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000" -Name "KMD_EnableBrightnessInterface2" -Value 0 -Type DWord

The reg utility and the PowerShell cmdlets are standard ways to add or change a single value from script or remotely. (renenyffenegger.ch)

Practical checks and safety: identify which 000x subkey contains the system's active display driver (look for DriverDesc/ProviderName or other driver strings), export that specific subkey first (via reg export or Regedit → Export) and create a restore point before applying changes. Use CurrentControlSet when targeting the active boot configuration; it is a live pointer to the control set Windows is using. (learn.microsoft.com)

Note: changing KMD_EnableBrightnessInterface2 is a commonly recommended community workaround for some Intel/AMD driver/upgrade brightness issues (set to 0 to restore legacy handling); a reboot is usually required and driver-level behavior varies, so keep the backup handy to revert if needed. (tenforums.com)

Recommended Answers

All 4 Replies

Rproffitt, thank you for your reply. Yes, the other thread describes the same issue. I have exported the whole branch and edited it. But as this is the first time I have edited a reg file I do not know if the syntax is correct.

Here is what I have

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class{4d36e968-e325-11ce-bfc1-08002be10318}\0000]
"KMD_EnableBrightnessInterface2"=dword:00000000

Does that look good? Do I need a space between the lines or another " at the end of the second line?

Kind regards
Chris

Looks fine to me. My experience is that blank lines and spaces at the end of line are ignored.

Thank you very much for your help.

I have to make the brightness keys work on a Lenovo G575 that has been upgraded from Windows 7 to 10. Everything works fine except there is a bug in the latest Win 10 graphics display driver that stops the brightness controls from working (either from Win 10 settings or the function keys). This registry change will fix it. Now, I have to use it on another identical computer belonging to a friend.

Out of the millions of lines of code a 1 has to be changed into a 0. Oh, the joys of working with computers!

Kind regards
Chris

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.