Bagai mana ya cara mendisable CMD, pasti itu yang ada dibenak lo semua yang ingin belajar ngerusak komputer teman. Kalau lo ingin tau caranya moedah kok . Gini coaranya
pertama open notepad and tulis ini script:
'Enable/Disable Registry Editing tools
Option Explicit
'Declare variables
Dim WSHShell, rr, rr2, MyBox, val, val2, ttl, toggle
Dim jobfunc, itemtype
On Error Resume Next
Set WSHShell = WScript.CreateObject("WScript.Shell")
val = "HKCU\Software\Policies\Microsoft\Windows\System\DisableCMD"
val2 = "HKLM\SOFTWARE\Policies\Microsoft\Windows\DisableCMD"
itemtype = "REG_DWORD"
jobfunc = "Command Prompt "
ttl = "Result"
'reads the registry key value.
rr = WSHShell.RegRead (val)
rr2 = WSHShell.RegRead (val2)
toggle=1
If (rr=2 or rr2=2) Then toggle=0
If toggle = 1 Then
WSHShell.RegWrite val, 2, itemtype
WSHShell.RegWrite val2, 1, itemtype
Mybox = MsgBox(jobfunc & "disabled.", 4096, ttl)
Else
WSHShell.RegDelete val
WSHShell.RegDelete val2
Mybox = MsgBox(jobfunc & "enabled.", 4096, ttl)
End If
dan save as Disable/EnableCMD.vbs
AllFiles
Ansi
Tidak ada komentar:
Posting Komentar