If you receive an access denied message when you try to open the Registry Editor, then the Registry Editor (Regedit) is disabled on your system. You need to change your system configuration to activate Regedit.
Steps
Step 1. Log in as an administrator
To do this, click Start, and then click the arrow button next to the Shut Down button. Select "Log out" and then log on as an administrator (enter the administrator account name and corresponding password).

Step 2. Click "Start" - "Run"
In the window that opens, enter gpedit.msc and press Enter.

Step 3. On the left in the "User Configuration" section, click "Administrative Templates" - "System"

Step 4. On the right, find the line "Deny access to registry editing tools" and double-click on it

Step 5. In the window that opens at the top left, select "Not configured" or "Enable" and click OK
Restart your computer for the changes to take effect.

Step 6. Click "Start" - "Run" and in the window that opens, enter Regedit
If a window appears asking you to confirm access to the Registry Editor, click "Allow".
Advice
- In Windows XP, you can activate Regedit by clicking "Start" - "Run" and in the window that opens, enter REG add HKCU \ Software \ Microsoft \ Windows \ CurrentVersion \ Policies \ System / v DisableRegistryTools / t REG_DWORD / d 0 / f, and then by pressing Enter. Then restart your computer for the changes to take effect.
- Disabling the Registry Editor is usually a consequence and sign of the presence of viruses and spyware in the system. If the Registry Editor turns off unexpectedly, use an antivirus program to scan your system for viruses, as they likely changed your system's configuration.