1

I'm trying to find a way to disable the Windows key, either through GPO, local policy, or an edit in the registry, but Google has been less than helpful.

6
  • Thanks for the reply, but none of those things worked on my machine.
    – user605803
    Jun 22, 2016 at 16:31
  • Open regedit. On the Windows menu, click HKEY_LOCAL_ MACHINE on Local Machine. Double-click the System\CurrentControlSet\Control folder, and then click the Keyboard Layout folder. On the Edit menu, click Add Value, type in Scancode Map, click REG_BINARY as the Data Type, and then click OK. Type 00000000000000000300000000005BE000005CE000000000 in the Data field, and then click OK. Close Registry Editor and restart the computer.
    – BDRSuite
    Jun 23, 2016 at 15:15
  • 1
    @vembutech this is the same instruction that has been posted here already, it didn't work for me, but thanks anyways.
    – user605803
    Jun 23, 2016 at 15:18
  • One thing we will notice, specially in these days of "working from home" is that the mapping will not be seen when doing a remote desktop connection since the mappings are for a local keyboard only. This took me a while to figure out since I am doing RD from a Mac computer. The solution was Autohotkey as others mention.
    – AlexD
    May 22, 2020 at 16:59

5 Answers 5

1

If using AutoHotkey, the following script disables the ability for the Win key to activate the Start Menu, while still allowing its use as a modifier:

~LWin::
~RWin::Send {Blind}{vkFF}
1

Like CJ1992 says (I could not comment unfortunately hence new post), but the AutoHotkey syntax now seems to be (it might be that I use 1.1.30.00 - the 2018-08-22 version):

LWin::return
RWin::return

Quoted from the AutoHotkey site.

1
0

There are multiple ways of disabling the Windows Key as seen on this page

Option 1: Registry Editor

  1. Click Start, click Run, type regedt32, and then click OK.
  2. On the Windows menu, click HKEY_LOCAL_ MACHINE on Local Machine.
  3. Double-click the System\CurrentControlSet\Control folder, and then click the Keyboard Layout folder.

  4. On the Edit menu, click Add Value, type in Scancode Map, click REG_BINARY as The Data Type, and then click OK.

  5. Type 00000000000000000300000000005BE000005CE000000000 in the Data field, and then click OK.

  6. Close Registry Editor and restart the computer.

Option 2: AutoHotKey

  1. Download AutoHotKey from http://www.autohotkey.com/

  2. Run it, then right click on its icon in the taskbar.Select 'Edit This Script' and it'll open the default script in Notepad

  3. Somewhere between the comments (which are marked with semi-colons) add the following:

    ~LWin Up:: return

    ~RWin Up:: return

  4. Now just save the file, right click on AutoHotkey again, and select 'Reload This Script.'

1
  • Thanks for the formatting help. Could not seem to be able to do it for the life of me :D
    – CJ1992
    Jun 23, 2016 at 8:26
0

Try SharpKeys. It's like a graphical interface to the registry. Whatever change you make is written to the registry, so no daemons, no background processes. Just make the change, log off and log in. Features include:

  • re-map keys
  • disable keys

And it's open source software, and it's tiny.

0

I have managed to successfully do this. Just download the following .bat file, right-click on it, and run it as administrator. Your computer will restart and after you log in, you can hit the Windows key. Win + R, etc. won't work.

The Bat files:

disablewinkey.bat:

If you change your mind and want your Windows key working again, then just download the following:

https://drive.google.com/file/d/1Xm-16l0yyZFqGCTcMlcQ5bSGXu_o2jZf/view

If you're wondering what the bat file does to disable Windows key, it simply adds a new binary key called "Scancode map" and restarts your computer.

    reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v "Scancode Map" /t REG_BINARY /d 00000000000000000300000000005BE000005CE000000000 && shutdown /r -t 00

To enable the Windows key, the bat file simply deletes the binary value and restarts your computer.

    reg delete "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /v "Scancode Map" /f && shutdown /r -t 00
2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .