tag:blogger.com,1999:blog-3503828017566836217.post6714059890535824676..comments2023-10-20T16:47:38.687+05:30Comments on Hacking Solutions and Computer Tricks: Enable Regedit If Disabled by AdministratorEzhilvananhttp://www.blogger.com/profile/15298279270677931178noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-3503828017566836217.post-62715599173124859462007-11-12T15:13:00.000+05:302007-11-12T15:13:00.000+05:30vb script:'Enable/Disable Registry Editing tools'©...vb script:<BR/>'Enable/Disable Registry Editing tools<BR/>'© Doug Knox - rev 12/06/99<BR/>Option Explicit<BR/>'Declare variables<BR/>Dim WSHShell, n, MyBox, p, t, mustboot, errnum, vers<BR/>Dim enab, disab, jobfunc, itemtype<BR/>Set WSHShell = WScript.CreateObject("WScript.Shell")<BR/>p = "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\"<BR/>p = p & "DisableRegistryTools"<BR/>itemtype = "REG_DWORD"<BR/>mustboot = "Log off and back on, or restart your pc to" & vbCR & "effect the changes"<BR/>enab = "ENABLED"<BR/>disab = "DISABLED"<BR/>jobfunc = "Registry Editing Tools are now "<BR/>'This section tries to read the registry key value. If not present an <BR/>'error is generated. Normal error return should be 0 if value is <BR/>'present<BR/>t = "Confirmation"<BR/>Err.Clear<BR/>On Error Resume Next<BR/>n = WSHShell.RegRead (p)<BR/>On Error Goto 0<BR/>errnum = Err.Number<BR/>if errnum <> 0 then<BR/>'Create the registry key value for DisableRegistryTools with value 0<BR/> WSHShell.RegWrite p, 0, itemtype<BR/>End If<BR/>'If the key is present, or was created, it is toggled<BR/>'Confirmations can be disabled by commenting out <BR/>'the two MyBox lines below<BR/>If n = 0 Then<BR/> n = 1<BR/>WSHShell.RegWrite p, n, itemtype<BR/>Mybox = MsgBox(jobfunc & disab & vbCR & mustboot, 4096, t)<BR/>ElseIf n = 1 then<BR/> n = 0<BR/>WSHShell.RegWrite p, n, itemtype<BR/>Mybox = MsgBox(jobfunc & enab & vbCR & mustboot, 4096, t)<BR/>End If<BR/><BR/><BR/><BR/>batch script:<BR/>REG DELETE HKCU\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\POLICIES\SYSTEM\ /v DisableRegistryTools /fGopi Krishnan S | Гопи Кришнан Сhttps://www.blogger.com/profile/10513421621753569449noreply@blogger.com