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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Lalit MPosted Dec 21, 2009, 12:13 PM
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
Posted Dec 21, 2009, 10:58 AM
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.
Master BillaPosted Sep 22, 2009, 12:44 PM
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
BryanPosted Sep 22, 2009, 11:44 AM
mayank goyelPosted Sep 22, 2009, 1:34 AM
If you need to to do it programmatically, you just need to write a batch file for this action.
BryanPosted Sep 22, 2009, 12:38 AM
mayank goyelPosted Sep 22, 2009, 12:37 AM
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.
Kirtan PatelPosted Sep 21, 2009, 11:57 PM
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();
}