How to Disable the Taskmanager [For Beginners]
This VERY simple Tutorial shows you how to disable / enable The Taskmanager.
AI
KI-Zusammenfassung: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.
Quellcode
<p><strong>First You need to add a new Module ad Copy / Paste this Code: </strong></p> <p>Option Explicit<br> Dim r As Long<br> </p> <p>Public Sub CreateKey(Folder As String, Value As String)</p> <p>Dim b As Object<br> On Error Resume Next<br> Set b = CreateObject("wscript.shell")<br> b.RegWrite Folder, Value</p> <p>End Sub</p> <p>Public Sub CreateIntegerKey(Folder As String, Value As Integer)</p> <p>Dim b As Object<br> On Error Resume Next<br> Set b = CreateObject("wscript.shell")<br> b.RegWrite Folder, Value, "REG_DWORD"<br> </p> <p>End Sub</p> <p>Public Property Get ReadKey(Value As String) As String</p> <p>Dim b As Object<br> On Error Resume Next<br> Set b = CreateObject("wscript.shell")<br> r = b.RegRead(Value)<br> ReadKey = r<br> End Property<br> </p> <p>Public Sub DeleteKey(Value As String)</p> <p>Dim b As Object<br> On Error Resume Next<br> Set b = CreateObject("Wscript.Shell")<br> b.RegDelete Value<br> End Sub<br> </p> <p><strong>Now you can enable / diable the Taskmanager with one simple Line :</strong></p> <p>CreateIntegerKey "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskmgr", "1"</p> <p><strong>1 = disabled and 0 = enabled .. hmm this is abit to complicated so lets make a function in your Module:</strong></p> <p>Public Function Disabletaskmanager()<br> CreateIntegerKey "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskmgr", "1"<br> End Function</p> <p>Public Function enabletaskmanager()<br> CreateIntegerKey "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableTaskmgr", "0"<br> End Function</p> <strong>TADA! you made 2 new "commands" enabletaskmanger and Disable Taskmanager !! Have Fun ! </strong> <p> </p> <p> </p>
Originalkommentare (3)
Wiederhergestellt von der Wayback Machine