Disable Winkey on keyboard

by Wayne Maples [Published on 20 April 2004 / Last Updated on 20 April 2004]

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.


     ; 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       \ 

     ; 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


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.

See Also

See Also

Featured Links