Disable Winkey on keyboard


To disable WinKey functionality that comes with most modern keyboards save the
following text in a REGINI script and run the script from the Windows NT command
prompt. Restart the computer to make the changes take effect.

     [REGINI SCRIPT STARTS HERE:]

;
; This mapping is used to turn both Windows keys off
;
\Registry\Machine\SYSTEM\CurrentControlSet\Control\Keyboard Layout
Scancode Map = REG_BINARY 24 \
0x00000000 0x00000000 3 \
0xE05B0000 0xE05C0000 \
0x0

; Here is an explanation of all the values:
;
; 24 Size of the scancode map including header, in bytes
; 0x00000000 Header : Version
; 0x00000000 : Flags
; 3 : Number of entries (includes null terminator)
; 0xE05B0000 left Windows -> nul (0xE0 0x5b -> 0x00)
; 0xE05C0000 right Windows -> nul (0xE0 0x5c -> 0x00)
; 0x00000000 null terminator

[REGINI SCRIPT ENDS HERE]

To remove this mapping, delete the following key in Regedt32.exe:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard
Layout\Scancode Map

This would be particularly useful as one of many desktop lockdowns for
a kiosk PC.

Leave a Comment

Your email address will not be published.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Scroll to Top