2

There is a blue screen that appears when you press ctrl-alt-del on windows 7 or vista. I figured out how to disable the taskmanager but users can still shutdown the machine.

How can I prevent them from being able to do this?

soandos
  • 24,206
  • 28
  • 102
  • 134
  • I would suggest to run a fresh antivirus –  Nov 20 '10 at 23:44
  • 3
    Doesn't this have a clear purpose: kiosk applications in which one doesn't want members of the public to restart the system? –  Nov 20 '10 at 23:53
  • idealmachine: Thats exactly why. I told the client he really doesnt need it but he asked me to look into it. –  Nov 21 '10 at 00:06
  • possible duplicate of [disable ctrl-alt-del and shutdown for kiosk](http://stackoverflow.com/questions/4234242/disable-ctrl-alt-del-and-shutdown-for-kiosk) – Kate Gregory Nov 21 '10 at 00:54

3 Answers3

3

Because it is the login system of Windows that traps the CTRL-ALT-DEL combination (and so it is not accessible to user applications), you will need to change the system's keyboard scancode map to ignore at least one of those keys.

PleaseStand
  • 4,879
  • 1
  • 19
  • 24
  • Disabling alt solved it. To do that i used the binary 00000000000000000300000000003800000038e000000000 –  Nov 21 '10 at 02:31
  • 1
    Heres the text for a .reg file http://www.pastie.org/1314447 –  Nov 21 '10 at 02:44
  • 1
    I probably should include the remove script http://www.pastie.org/1314499 just name it anything.reg –  Nov 21 '10 at 03:19
1
User Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
System Key: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\
Explorer]
Value Name: NoClose
Data Type: REG_DWORD (DWORD Value)
Value Data: (0 = shutdown enabled, 1 = shutdown disabled)


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\Current Version\Winlogon]
Value Name: ShutdownWithoutLogon
Data Type: REG_SZ
Value Data: 0
  • +1 but i dont understand how this works. I still was able to turn off my comp... I looked this up http://technet.microsoft.com/en-us/library/cc938263.aspx and while i didnt notice shutdown grayed out i can do it through that blue screen –  Nov 21 '10 at 00:17
  • 1
    are you looking for a way to disable ctrl+alt+del? –  Nov 21 '10 at 00:41
  • @HPT: yes. I found out how to disable the taskmanager and now the only way someone can shutdown outside of the designated secret or password way except the blue screen through ctrl+alt+del –  Nov 21 '10 at 00:56
0

You could use AHK (auto hot key) to stop these keys sending what they should, i was considering making a program to do this for the whole keyboard as a joke. You could replace the keys with a message box says "you are not allowed to do that!" or even have a hidden keycombo to put back the functionality of the keys

QuantumKarl
  • 101
  • 2
  • 1
    AutoHotkey doesnt stop it. I remapped alt, i found how to disbale taskman but this is for a kiosk and the client doesnt want the comp to be shutdown by the public –  Nov 21 '10 at 00:05
  • 3
    Windows does not allow `Ctrl`-`Alt`-`Del` to be remapped this way. – u1686_grawity Nov 21 '10 at 10:01