25 January 2014

Enable "Regedit" [Registry Editor] on Windows Disabled by Virus [Solved]

In the last tutorial, we tackle and learn few things on how to re-enable Windows Task Manager with different options.

Today, we will be learning on how to enable Registry Editor that has been disabled by the administrator or a virus.

But before we go on these few options, let us learn the basic information about Registry Editor.

Registry Editor (Regedit)
Registry Editor (Regedit)
What is Registry Editor?

Registry Editor is a built-in, useful, and powerful Windows utility that can view, modify, create, and delete settings of Windows Registry* keys. It also contains various information on the system.

For applications(kernel, driver, services, SAM, UI) to run appropriately and efficiently, it uses and applies these registry keys.

*Windows Registry is a hierarchical collection (hives) of databases that stores and contains configuration settings and options for Windows operating systems.

In such, viruses and worms like to modify and apply changes which frequently cost of slowing the system.

Furthermore, corrupt registries could slow your PC. But no worries, there are a lot of applications that fix this kind of issue.

I do recommend reading these:

We provide known solutions existed that works on a different platform of Windows OS(XP, Vista, 7,8). As we go on the way, we hope to share and learn techniques and tips in this article.

With that, you agree that you are the sole responsible for any cause may encounter, we are not liable for any loss or damages that cause on these options.

Option #1: Enable Registry Editor Using CMD or Command Prompt

Command Prompt (cmd) is a built-in and useful Windows tool, formerly known to be MS-DOS, used to Enable Registry Editor.

1. Click on Windows Start logo
2. Click type Run on the text search box if you are using Windows Vista/7/8. However, on Windows XP platform, you can just click the RUN after clicking Start logo.
3. Copy and Paste the code below

REG add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System /v DisableRegistryTools /t REG_DWORD /d 0 /f


reg add [{/v ValueName | /ve}] [/t DataType] [/s Separator] [/d Data] [/f]

  • /v: Specifies the name of the registry entry to be added under the specified subkey.
  • /t: Specifies the type of the registry entry. The type must be one of the following:
    • REG_SZ
    • REG_LINK
  • /d Specifies the data for the new registry entry.
  • /f Adds the registry entry without prompting for confirmation.
  • /0 means success on displaying help for reg add 
4. Hit "Enter" key
5. Enjoy!

  • use Run as Administrator to take and apply changes effectively
  • Shortcut: Hit Windows key + r to open RUN, and type the code and hit enter.
enable registry editor using cmd run
Enable registry editor using cmd run
Option #2: Enable Registry Editor Using NOTEPAD and BATCH file

Enable Regedit by only running a .bat file that can be made on text editors like Notepad.
Bat file on NOTEPAD
Bat file on NOTEPAD

1. Open your Notepad. (start->accessories->notepad) or simply type Notepad in the textbox
2. Copy the code given below and paste it.
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System" /t Reg_dword /v DisableRegistryTools /f /d 0
3. Save the file as EnableRegistryEditor.bat. 

Note: Run this file as Administrator if you use Windows Vista, 7, and 8 In Windows XP, only open the file.

  • When saving set to ALL FILES(*.*), if not put quotes before and after the filename i.e. "EnableRegistryEditor.bat"
CMD will flash for a second and then disappear. Reboot your system or just log off/on to take effect.

Option #3: Enable Registry Editor Using Group Policy Editor

Group Policy Editor is a powerful feature on Windows platform except on Home Editions that can configure local policy including enabling registry editor.

Local Group Policy Editor - prevent access to registry editing tools
Local Group Policy Editor - prevent access to registry editing tools
  • Enable Registry Editor Using Group Policy Editor
1. Click on Windows Start logo. Type or click Run. Users running Windows 8, Windows 7 or Vista, go to Search and type RUN instead.
2. Type gpedit.msc and press Enter to open Local Group Policy Editor
3. In the left pane, navigate to (in order)
    • User Configuration/ 
    • Administrative Templates
    • System
4. In the right pane, double-click on "Prevent Access to Registry Editing Tools" (as shown in screenshot).
5. In the popup window, check Disabled or Not Configured then click OK.
6. Normally, Registry Editor will be immediately accessible. If it is not, restart/log off/on your PC.


Since Group Policy is not available on Windows Home Edition versions, this software could use as an alternative to solve the problem.

Take note: We are not liable for any damages it causes. Take extra precaution when using this software. It is recommended, you MUST backup your system or create a restore point.

You can download and install it(at your risk): Download Gpedit.msc on Home Edition Versions

Option #4: Enable Registry Editor Using Symantec's UnHookExec.inf file

If you can't open CMD or command prompt, because of the Virus, Worms, and Trojans, this file could just solve the problem.

1. Just download this file -> UnHookExec.inf

HKLM, Software\CLASSES\batfile\shell\open\command,,,"""%1"" %*"
HKLM, Software\CLASSES\comfile\shell\open\command,,,"""%1"" %*"
HKLM, Software\CLASSES\exefile\shell\open\command,,,"""%1"" %*"
HKLM, Software\CLASSES\piffile\shell\open\command,,,"""%1"" %*"
HKLM, Software\CLASSES\regfile\shell\open\command,,,"regedit.exe ""%1"""
HKLM, Software\CLASSES\scrfile\shell\open\command,,,"""%1"" %*"
HKCU, Software\Microsoft\Windows\CurrentVersion\Policies\System,DisableRegistryTools,0x00000020,0

or just copy its content in the notepad and save as "UnHookExec.inf"

2. Run as administrator and then reboot your system.

Option #5: Enable Registry Editor Using Visual Basic Script or .VBS

VBS is a scripting program with sets of command to execute series of code.

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"
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

The above post simplifies the procedure on options 1 and 2 with the addition of message dialog box for user interaction.

Copy the codes above and paste it into Notepad.
Save it as RegistryEditorEnabled.vbs

You can also check: Source

Final Thoughts

We have learned options or ways to re-enable registry editor on our system. Ideally, for convenience, we recommend updating your ANTI-VIRUS signature, Patch PC system, and user-awareness of software.

We hope you will find this article useful. Thank you for reading. :)

Featured Offers: