Enable Registry Editor disabled by Administrator or Virus in Windows

Registry Editor is a useful utility in Windows which allows users to easily change advanced Windows settings by altering registry keys present in a hierarchical arrangement called the Windows Registry.
Simple virus infection is all it takes to render it useless. Or, there are times when your administrator has actually disabled Registry Editing. When try to open the Registry Editor in one such computer, it is likely to receive the "Registry editing has been disabled by your administrator" error. Due to this error, it is impossible to remove this restriction using the Registry Editor itself. However, there are some techniques that can use to re-enable Registry Editing and close those harmful programs manually.
Windows Registry Editor
Windows Registry Editor
This article contains few such simple techniques to re-enabling Registry Editor in a computer running Windows.

⬛ Enable Registry Editor using the Group Policy Editor
  1. Click on Start. Go to Run. (Alternatively, use Windows key+R keyboard shortcut).
  2. Type gpedit.msc and press Enter. Group Policy Editor Window will show up.
  3. Navigate to User Configuration/ Administrative Templates / System.
  4. In the work area, double click on "Prevent Access to registry editing tools".
  5. Getting access to Registry editing
    Getting access to Registry editing
  6. In the pop-up window, encircle Disabled and click on OK.
  7. Normally, Registry Editor will be immediately accessible. If it is not, restart PC.
Group Policy Editor is not available on home editions of Windows.

⬛ Enable Registry Editor by running a CMD Command
  1. Open Notepad.
  2. Copy the code given below and paste it.

  3. [reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /t Reg_dword /v DisableRegistryTools /f /d 0

  4. Save the file as EnableRegistry.bat
  5. Run this file as Administrator if using Windows 10, Windows 8, Windows 7 or Windows Vista. In Windows XP, simply open the file. CMD will flash for a second and then disappear. This indicates successful execution.
  6. After running the batch file, it will be able to again use Registry Editor. If Registry Editor is still not available, restart the computer.

⬛ Visual Basic Script to Enable/ Disable Registry Editor

Doug Knox has created a VBS Script which allows users to easily enable and disable the Registry Editor. This script reverses the current state of the Registry Editor. If registry editing is set to enabled, this script will disable it and if it is disabled, it will enable it.
  1. Open Notepad.
  2. Copy the code given below and paste it.

  3. Option Explicit
    Dim WSHShell, n, MyBox, p, t, mustboot, errnum, vers
    Dim enab, disab, jobfunc, itemtype
    Set WSHShell = WScript.CreateObject("WScript.Shell")
    p = "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\"
    p = p & "DisableRegistryTools"
    itemtype = "REG_DWORD"
    mustboot = "Log off and back on, or restart your pc to" & vbCR & "effect the changes"
    enab = "ENABLED"
    disab = "DISABLED"
    jobfunc = "Registry Editing Tools are now "
    t = "Confirmation"
    Err.Clear
    On Error Resume Next
    n = WSHShell.RegRead (p)
    On Error Goto 0
    errnum = Err.Number
    if errnum <> 0 then
    WSHShell.RegWrite p, 0, itemtype
    End If
    If n = 0 Then
    n = 1
    WSHShell.RegWrite p, n, itemtype
    Mybox = MsgBox(jobfunc & disab & vbCR & mustboot, 4096, t)
    ElseIf n = 1 then
    n = 0
    WSHShell.RegWrite p, n, itemtype
    Mybox = MsgBox(jobfunc & enab & vbCR & mustboot, 4096, t)
    End If

  4. Save the file as *.vbs or Registry Editor.vbs (or just download Regedit tools.zip, extract the VBS file.)
  5. Run this file as Administrator if using Windows 10, Windows 8, Windows 7 or Windows Vista and in Windows XP, simply open the file. Or simply double click on it.
  6. After running the VBS file, if Registry editing is not enabled, try restarting PC.