Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

migrated from Nov 21 '10 at 5:47

This question came from our site for professional and enthusiast programmers.

I would suggest to run a fresh antivirus – Vlad Nov 20 '10 at 23:44
Doesn't this have a clear purpose: kiosk applications in which one doesn't want members of the public to restart the system? – idealmachine 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. – acidzombie24 Nov 21 '10 at 0:06
possible duplicate of disable ctrl-alt-del and shutdown for kiosk – Kate Gregory Nov 21 '10 at 0:54
up vote 4 down vote accepted

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.

share|improve this answer
Disabling alt solved it. To do that i used the binary 00000000000000000300000000003800000038e000000000 – acidzombie24 Nov 21 '10 at 2:31
Heres the text for a .reg file – acidzombie24 Nov 21 '10 at 2:44
I probably should include the remove script just name it anything.reg – acidzombie24 Nov 21 '10 at 3:19
User Key: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\
System Key: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\
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
share|improve this answer
+1 but i dont understand how this works. I still was able to turn off my comp... I looked this up and while i didnt notice shutdown grayed out i can do it through that blue screen – acidzombie24 Nov 21 '10 at 0:17
are you looking for a way to disable ctrl+alt+del? – HPT Nov 21 '10 at 0: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 – acidzombie24 Nov 21 '10 at 0:56

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

share|improve this answer
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 – acidzombie24 Nov 21 '10 at 0:05
Windows does not allow Ctrl-Alt-Del to be remapped this way. – grawity Nov 21 '10 at 10:01

You must log in to answer this question.

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