Disable Windows Key in Windows 10 – Simple Methods
In this article
Yes, you can disable the Windows key in Windows 10 by editing the registry or using Group Policy, and the change takes effect after you log out or restart.
What You’ll Need
- Administrator access to the computer
- Either Windows 10 Pro, Enterprise, or Education (for Group Policy) or the Home edition (registry method works on all editions)
- A basic text editor such as Notepad (optional but handy for backing up the registry)
- Patience and a backup plan – creating a System Restore point is strongly recommended before editing the registry
Step‑by‑Step
- Create a System Restore point. Open the Start menu, type
Create a restore point, select the matching result, and click Create in the System Protection tab. Give it a descriptive name like “Before disabling Windows key”. This step protects you if anything goes wrong. - Choose your preferred method. If you run Windows 10 Pro or higher, you can use the Local Group Policy Editor; otherwise, use the Registry method.
- Group Policy method (Pro, Enterprise, Education)
- Press Win + R, type
gpedit.msc, and press Enter. This opens the Local Group Policy Editor. - Navigate to
User Configuration > Administrative Templates > Windows Components > File Explorer. The exact path may vary slightly between builds, but the folder is named File Explorer (formerly Windows Explorer). - In the right‑hand pane, locate the policy called Turn off Windows+X hotkeys. Double‑click it.
- Select Enabled**, then click OK. This policy disables all Windows‑key shortcuts, including the single Windows key.
- Close the Group Policy Editor and either sign out and sign back in, or restart the computer for the change to take effect.
- Press Win + R, type
- Registry method (all editions)
- Press Win + R, type
regedit, and press Enter. If prompted by User Account Control, click Yes to allow the Registry Editor to make changes. - Navigate to the following key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout
If theKeyboard Layoutsubkey does not exist, right‑clickControl, choose New > Key, and name itKeyboard Layout. - In the right pane, right‑click an empty space, select New > Binary Value, and name it
Scancode Map. - Double‑click
Scancode Mapand enter the following binary data (shown as a series of hexadecimal bytes):00 00 00 00 00 00 00 00 03 00 00 00 00 00 5B E0 00 00 5C E0 00 00 00 00
This map tells Windows to ignore the left (0x5B) and right (0x5C) Windows keys. The leading eight zero bytes are required header information. - Click OK**, then close the Registry Editor.
- Restart the computer. After reboot, pressing the Windows key will no longer open the Start menu or trigger any Windows‑key shortcuts.
- Press Win + R, type
- Verify the change. After the system restarts, press the Windows key. If the Start menu does not appear and shortcuts like Win + L do nothing, the key has been successfully disabled.
- Re‑enable the Windows key (optional).
- If you used Group Policy, return to the same policy, set it to Not Configured, and apply the change.
- If you used the registry, delete the
Scancode Mapvalue you created, then restart the computer.
Common Mistakes
- Skipping the System Restore point. Without a restore point, a typo in the registry can render the system unstable, requiring a full reinstall.
- Entering the wrong hexadecimal values. The Scancode Map must be exactly 24 bytes (including the header). Missing a byte or swapping the order will cause Windows to ignore the entire map.
- Editing the wrong registry hive. The key must be under
HKEY_LOCAL_MACHINE. Placing it underHKEY_CURRENT_USERwill have no effect. - Forgetting to restart. Changes to the Scancode Map are only read during boot; a simple log‑off is insufficient.
- Using the Group Policy method on Windows 10 Home. Home edition does not include
gpedit.msc, so the policy will not be available.
Tips
- Keep a backup of the original registry key by exporting
Keyboard Layoutbefore you addScancode Map. Right‑click the key and choose Export. - If you only want to disable the Windows key for gaming, consider using a third‑party key‑remapping tool that can toggle the setting on the fly. However, the built‑in methods are more reliable and do not require additional software.
- Use the
reg querycommand in an elevated Command Prompt to verify the value without opening the GUI:reg query "HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v ScancodeMap
- When documenting the change for future reference, note the exact Windows build you are on, as future updates may reset custom Scancode maps.
- If you are part of a domain, ask your IT administrator to apply the Group Policy change at the domain level; this ensures consistency across multiple machines.
Troubleshooting
If the Windows key still works after following the steps, try the following sequence:
- Confirm the registry value. Open
regeditagain and double‑check thatScancode Mapexists under the exact path and contains the 24‑byte data shown earlier. - Check for duplicate entries. Some keyboards install their own drivers that add additional Scancode maps under
HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout. If anotherScancode Mapexists, merge the values or remove the conflicting entry. - Ensure you are running a 64‑bit edition. The steps are identical for 32‑bit, but some older hardware may store the layout under a different subkey; verify the path.
- Verify Group Policy precedence. On a domain‑joined PC, a domain policy can override a local setting. Run
gpresult /h gpresult.htmlto see which policies are applied. - Disable fast startup. Fast startup can sometimes skip the registry reload phase. Open
Control Panel > Power Options > Choose what the power buttons doand uncheck Turn on fast startup, then restart. - Test with a different keyboard. Some keyboards have a built‑in Windows key that sends a unique scancode not covered by the generic map. Plug in a standard keyboard to see if the issue persists.
- Re‑apply the change after Windows updates. Major feature updates may reset the Scancode map. After an update, repeat the registry step or re‑enable the Group Policy.
Frequently Asked Questions
Will disabling the Windows key affect other shortcuts that use it?
Yes. The Group Policy method disables all Windows‑key shortcuts, while the registry map disables the key itself, so any combination that starts with the Windows key (e.g., Win + E) will no longer work.
Can I disable only the left Windows key and keep the right one?
The Scancode map can be edited to target a single key. Replace the two 4‑byte entries with only 00 00 5B E0 for the left key or 00 00 5C E0 for the right key, adjusting the length field accordingly.
Do I need to reinstall drivers after editing the registry?
No. The change is handled at the OS level, not by the keyboard driver. A reboot is sufficient.
Will the change survive a Windows reset or clean install?
No. A reset or clean install recreates the registry from scratch, so you will need to re‑apply the steps.
Is there a way to toggle the Windows key on and off without editing the registry each time?
Windows does not include a built‑in toggle. Some third‑party utilities offer a hotkey to enable or disable the Windows key, but those tools are outside the official Microsoft guidance.
Can I use the same method on Windows 11?
The registry Scancode map works on Windows 11 as well, and the Group Policy setting remains under the same path, though the policy name may have been updated to “Turn off Windows+X hotkeys”.