Cara mengunci dan membuka regedit

MENGUNCI REGEDIT 
Buka notepad, copas script dibawah ini dengan nama block_registry.reg

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\system]
"disableregistrytools"=dword:00000001

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"NoRun"=dword:00000001
"DisallowRun"=dword:00000001

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System]
"DisableCMD"=dword:00000002

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun]
"0"="regedit.exe"
"1"="gpedit.msc"






BUKA REGEDIT
Buka notepad, copas script dibawah ini dengan nama open registry.vbs

Set WshShell = CreateObject("WScript.Shell")
Var_YN = MsgBox("Enable Registry Editor?", vbYesNo, "I-T[e]ChNoLoGy Corp Ltd")
If Var_YN = 6 Then

WshShell.RegWrite"HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools",0,"REG_DWORD"
WshShell.Run("RegEdit.EXE")

Else
WshShell.RegWrite"HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools",1,"REG_DWORD"
Var_Ok = MsgBox("Registry Editor is Disabled!", vbOkOnly, "I-T[e]ChNoLoGy Corp Ltd")

End If




 Semoga bermanfaat