Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the Win32 API to disable task manager completely? [closed]

That is,even if you press Ctrl+Alt+Del,the task manager should not pop up.

like image 816
DriverBoy Avatar asked May 13 '11 08:05

DriverBoy


2 Answers

You can disable access to the task manager using the group policy editor or the The Group Policy API.

To use the editor, run gpedit.msc and navigate to Navigate to "User Configuration" -> "Administrative Templates" -> "System" -> "Ctrl+Alt+Del Options". Double-click the "Remove Task Manager" setting and set it to "Enabled".

Close the policy editor then run the command gpupdate /force to apply the changes.

After you've done this, if the user tries to access the task manager then they'll get a message saying that access is disabled.

EDIT

If the user is an administrator then they could (if they know how to) go into gpedit and re-enable the taskmanager. To avoid this make them a member of the Users or Guests groups: they won't be able to change the any policy settings then.

like image 90
Andy Johnson Avatar answered Oct 01 '22 04:10

Andy Johnson


While a user can go in and turn it on again, you can set this registry key to 1

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskmgr

(the \System\ and DisableTaskmgr might not exists so create them, DisableTaskmgr should be a DWORD32 key)

like image 40
nos Avatar answered Oct 01 '22 03:10

nos