Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

March 05, 1999 12:00 AM

How can I disable the Win key?

Windows IT Pro
InstantDoc ID #14885
Rating: (2)

A. To disable both Windows keys perform the following:

  1. Start the registry editor (regedt32.exe)
  2. Move to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout
  3. From the Edit menu select New - Binary Value
  4. Enter a name of "Scancode Map" and press enter
  5. Double click on the new value and set to
    0000 0000 0000 0000 0300 0000 0000 5BE0 0000 5CE0 0000 0000 Do not type the spaces, I only include them only to help you view the data
  6. Click OK
  7. Close the registry editor and reboot the machine

Once the machine has restarted the Win key will no longer work

You can automate this by placing the command in a regini file, create the file remove_win.ini with the following contents

\Registry\Machine\SYSTEM\CurrentControlSet\Control\Keyboard Layout
      Scancode Map = REG_BINARY 24         0x00000000 0x00000000 3              0xE05B0000 0xE05C0000          \ 
      0x0

To then run the script enter the command

regini remove_win.ini

Regini.exe is supplied with the Windows NT Resource kit.

To re-enable the Win key delete the "Scancode Map" value you created.


Related Content:

ARTICLE TOOLS

Comments
  • Bouwer
    2 years ago
    Jul 20, 2010

    Alternatively you can install WinKeyPlus (http://www.winkeyplus.com).
    You can disable any key (like F1 or the winkey) and map commands and text to key combinations.

  • Edmund Esparas
    8 years ago
    Feb 10, 2004

    i'm having trouble with the source code i downloaded about disabling the windows key. i created a killwin.ini file, this file contain the code you had given in your website. my problem is... nothing happened. windows key is enabled!

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.