Windows – Remap keyboard with scancode map for disable alt+ctr+del

windowswindows 7windows-registry

I have an application to run on a dedicated kiosk. I want to disable any key on Windows7.

I want to block Alt+Ctr+Del, that users can't shutdown the system.

I want to disable Alt , Ctrl keys that users can't use Alt+Ctrl+Del, I use this Scancode Map

REGEDIT5 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode  Map"=hex:00,00,00,00,00,00,00,00,09,00,00,00,00,00,5b,e0,00,00,5c,e0,00,00,5d,e0,00,00, 44,00,00,00,1d,00,00,00,38,00,00,00,1d,e0,00,00,38,e0,00,00,00,00

But don't work for me!!!

How to use scancode map for disable alt+ctr+del?

Best Answer

Solution

There are multiple issues in your .reg file:

  1. REGEDIT5 is not a valid identifier; use Windows Registry Editor Version 5.00 instead.
  2. The first line of the file is reserved for the registry editor version and should be followed by a blank line.
  3. You put at an extra space between Scancode and Map.
  4. Each comma-separated hexadecimal value should not carry extra spaces.

Here's the fixed, working version:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,09,00,00,00,00,00,5b,e0,00,00,5c,e0,00,00,5d,e0,00,00,44,00,00,00,1d,00,00,00,38,00,00,00,1d,e0,00,00,38,e0,00,00,00,00

As per the article linked by tenorkev, these are the keys which will be disabled:

5b e0    Left Windows Key
5c e0    Right Windows Key
5d e0    Windows Menu Key
44 00    F10
1d 00    Left Ctrl
38 00    Left Alt
1d e0    Right Ctrl
38 e0    Right Alt

Make sure to restart afterwards in order to apply the changes. As an alternative you might want to use SharpKeys to disable or remap any key.

Further reading

Related Question