Click here to Skip to main content
15,891,253 members

Comments by LePixeL (Top 1 by date)

LePixeL 18-Oct-15 17:02pm View    
It works fine on windows 10..
Although setting the DisableTaskMgr back to 0 doesnt work
I just delete the key when I am done.
private void EnableTaskManager()
{
RegistryKey regkey = default(RegistryKey);
string subKey = "Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System";
try
{
regkey = Registry.CurrentUser.CreateSubKey(subKey);
regkey.DeleteValue("DisableTaskMgr");
regkey.Close();
//MessageBox.Show("EnabledTaskMAnager");
}
catch (Exception ex)
{
MessageBox.Show("Registry Error!");
}

}