The reason why the taskmanager gets disabled is because of the following entries being set to 1 in the Registry.
HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskMgr
HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskMgr
HK CU – (Current User)
HK LM – (Local Machine) - For All Users.
To Resolve this, we can set this value to “0” & restart the computer.
This will not happen while normal usage of the computer. It may also be a result of a virus attack.
Here are few tips to make sure that your computer is free from viruses:-
1) Do not execute any program on your computer unless & until you know for sure that it is a trust worthy program.
2) Do not allow the external devices (like thumb Drives, External HDD) to autorun. You can disable it by edit the Group Policy. Here is how to do it
a. Click on Start > Run
b. Type gpedit.msc
c. Under User Configuration, Expand Administrative Components
d. Click on System
e. Now double click on “Turn Off Autoplay” on the Right side of the screen & click on “Enabled” & select “All Drives” from the drop down
f. Click “OK”.
Use a Strong Antivirus on your computer. (for Ex : McAfee)