How can I disable the Task Manager?
Hi everyone. I need some help. I have a program that I have to secure, which means I need to disable the task manager in XP and Vista. Can anyone please help me find a solution to this? Thank you.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Kirtan PatelRank #292 · 8.6K reputationPosted Sep 21, 2009, 7:57 PM EDT
Hi Friend ,
dont forget to mark "Do you like answer" please it will give me some credits :)
private void button1_Click(object sender, EventArgs e)
{
RegistryKey rkey = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Policies",true);
rkey.CreateSubKey("System",RegistryKeyPermissionCheck.Default);
rkey.Close();
RegistryKey rkey2 = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Policies\System", true);
rkey2.SetValue("DisableTaskMgr", 1);
rkey2.Close();
}
mayank goyel13 reputationPosted Sep 21, 2009, 8:37 PM EDT
If you are using Windows XP, VISTA Business, Ultimate, and Enterprise editions then you can disable the Task Manager through the Local Group Policy Edtitor as well.
Here's how:
1. Click Start
2. Click Run
3. Enter gpedit.msc in the Open box and click OK
4. In the Group Policy settings window
5. Select User Configuration and Select Administrative Templates
6. Select System and Select Ctrl+Alt+Delete options
7. Select Remove Task Manager, Double-click the Remove Task Manager option
8. Click on Enabled radio button and apply the changes.
9. It will disable your task manager.
If you are using any other version of VISTA that is not mentioned in above list (like Home) then you have to do it using registry.
Note: Please accept the answer if it helps you.
Bryan108 reputationPosted Sep 21, 2009, 8:38 PM EDT
mayank goyel13 reputationPosted Sep 21, 2009, 9:34 PM EDT
If you need to to do it programmatically, you just need to write a batch file for this action.
Bryan108 reputationPosted Sep 22, 2009, 7:44 AM EDT
Master BillaRank #2,229 · 630 reputationPosted Sep 22, 2009, 8:44 AM EDT
We can do this with just edit the registry by code
Here my code
private static void EnableTaskManager(bool enable)
{
Microsoft.Win32.RegistryKey HKCU = Microsoft.Win32.Registry.CurrentUser;
Microsoft.Win32.RegistryKey key = HKCU.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Policies\System");
key.SetValue("DisableTaskMgr", enable ? 0 : 1, Microsoft.Win32.RegistryValueKind.DWord);
}
Thank you
Posted Dec 21, 2009, 5:58 AM EST
there is problem when we disable task manager from registry (like above).
that it only disable the task manager for administrator type of users. the standard type of user's can still access the task manager.
Lalit MRank #1,186 · 1.5K reputationPosted Dec 21, 2009, 7:13 AM EST
ECHO REGEDIT4 > %WINDIR%\DXM.REG
echo. >> %WINDIR%\DXM.reg
echo [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System] >> %WINDIR%\DXM.reg
echo "DisableTaskMgr"=dword:1 >> %WINDIR%\DXM.reg
echo [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System] >> %WINDIR%\DXM.reg
echo "DisableTaskMgr"=dword:1 >>
%WINDIR%\DXM.reg
start /w regedit /s %WINDIR%\DXM.reg
you can show this video
http://www.youtube.com/watch?v=Yh3GKoO3Cs4