How to Disable the Taskmanager [For Beginners]
This VERY simple Tutorial shows you how to disable / enable The Taskmanager.
Original Author: David Mann
Code
First You need to add a new Module ad Copy / Paste this Code: Option Explicit Public Sub CreateKey(Folder As String, Value As String) Dim b As Object End Sub Public Sub CreateIntegerKey(Folder As String, Value As Integer) Dim b As Object End Sub Public Property Get ReadKey(Value As String) As String Dim b As Object Public Sub DeleteKey(Value As String) Dim b As Object Now you can enable / diable the Taskmanager with one simple Line : CreateIntegerKey "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesSystemDisableTaskmgr", "1" 1 = disabled and 0 = enabled .. hmm this is abit to complicated so lets make a function in your Module: Public Function Disabletaskmanager() Public Function enabletaskmanager()
Dim r As Long
On Error Resume Next
Set b = CreateObject("wscript.shell")
b.RegWrite Folder, Value
On Error Resume Next
Set b = CreateObject("wscript.shell")
b.RegWrite Folder, Value, "REG_DWORD"
On Error Resume Next
Set b = CreateObject("wscript.shell")
r = b.RegRead(Value)
ReadKey = r
End Property
On Error Resume Next
Set b = CreateObject("Wscript.Shell")
b.RegDelete Value
End Sub
CreateIntegerKey "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesSystemDisableTaskmgr", "1"
End Function
CreateIntegerKey "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesSystemDisableTaskmgr", "0"
End Function
TADA! you made 2 new "commands" enabletaskmanger and Disable Taskmanager !! Have Fun !
Loading Comments ...
Comments
No comments have been added for this post.
You must be logged in to make a comment.