Hi
I found this code to disable the task manager and it works like a charm.
public static void enable()
{
RegistryKey objRegistryKey = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Policies\System");
objRegistryKey.DeleteValue("DisableTaskMgr");
objRegistryKey.Close();
}
public static void disable()
{
RegistryKey objRegistryKey = Registry.CurrentUser.CreateSubKey(@"Software\Microsoft\Windows\CurrentVersion\Policies\System");
if (objRegistryKey.GetValue("DisableTaskMgr") == null)
objRegistryKey.SetValue("DisableTaskMgr", "1");
//RegistryKey regkey;
//string keyValueInt = "1";
//string subKey = "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System";
//try
//{
// regkey = Registry.CurrentUser.CreateSubKey(subKey);
// regkey.SetValue("DisableTaskMgr", keyValueInt);
// regkey.Close();
//}
//catch (Exception ex)
//{
// Console.WriteLine(ex.Message);
//}
}
I have got a requirement from the user where I have to disable the user from clicking the file explorer, the search box that appears in the taskbar and the start menu.
What registry keys should I use and what are the other options, tweaking registry key and enabling them back seems easier...but I am open to suggestions and advice.. I am not able to find the appropriate keys to disable the file explorer and the others..
Please advice.