Removing the "Open in new window" context menu item without disabling the Win+E shortcut

On Windows 7, the Open in new window context menu item for folders can be removed from the right-click context menu by adding a LegacyDisable value to the following registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\opennewwindow 

By default, however, disabling the key in this way disables Windows 7's Win+E shortcut to opening an Explorer window. It's also possible that it disables other Windows shortcuts.

How can I disable the opennewwindow registry key without disabling the Win+E shortcut?


Solution 1:

Try to add this key:

[HKEY_CLASSES_ROOT\Folder\shell\opennewwindow]
"ProgrammaticAccessOnly"=""