I have a form, 2 buttons, i am able to disable task manager but it doesn't enable.
Button 1 Click.
Button 2 Click.Code:Dim regkey As RegistryKey regkey = Registry.CurrentUser.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Policies\System", True) regkey.SetValue("DisableTaskMgr", "0")
Am i doing something wrong?Code:Dim regkey As RegistryKey regkey = Registry.CurrentUser.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Policies\System", True) regkey.SetValue("DisableTaskMgr", "1")
Is there another way to change a value of the registry key?
Thanks
Edit: When i go into registry and try manual edit it to change the value to "0" so that it is enabled, it doesn't work.
The way i have enabled it is to go into gpedit.msc and do it from there, even though it is set to "not configured" in gpedit.
Hope that makes sense.




Reply With Quote