[FIX] “An Error Is Preventing This Key From Being Opened” For Registry Editor

While moving to a registry key in Registry Editor for Windows 10, if you get "An error is preventing this key from being opened'' message, fix it here.

Kapil Arya
11x Microsoft MVP · Admin
2 min read
Add as a preferred
source on Google

Registry Editor present in Windows helps us to quickly modify any setting by overriding manual settings. Whether it is a how-to guide or is a troubleshooting fix, Registry Editor finds its applications in both of them. If you’re new to Windows, you can explore more about Registry Editor tool in our getting started guide:

Getting started with Registry Editor

Today, in this article, we’ll discuss an issue happening in this tool that prevents you from opening a registry key. Sometimes while opening specific keys, this problem comes into play. The error message received in this case and its corresponding screenshot are shown below.

FIX An Error Is Preventing This Key From Being Opened For Registry Editor In Windows 10

You may spot this error message under following conditions:

  • If you searched for registry key/location/data whose name is too long that the tool can’t handle it
  • When your account do not have required permissions to open/modify/delete a specific registry key

If first point is true in your case, you can try splitting your search query. If you’ve complete registry location available, you can access it manually, key by key. If second point is true in your case, you need to run Registry Editor as SYSTEM account rather than administrator account (default). This can be done using a command-line tool named PsExec. Here is what you need to do:

FIX : “An Error Is Preventing This Key From Being Opened” For Registry Editor In Windows 10

1. Firstly, download PsExec tool by Sysinternals from Technet using following link.

DOWNLOAD LINK

2. The downloaded compressed (.zip) file can be extracted using right click -> Extract All option.

FIX An Error Is Preventing This Key From Being Opened For Registry Editor In Windows 10

3. Upon extracting file, you’ll get PSTools folder. Copy all the content inside this folder to C:\Windows\System32 folder. You can replace C: with your system root drive.

FIX An Error Is Preventing This Key From Being Opened For Registry Editor In Windows 10

4. Right click Start Button and select Command Prompt (Admin). Type this command and press Enter key:

psexec -i -d -s c:\windows\regedit.exe

FIX An Error Is Preventing This Key From Being Opened For Registry Editor In Windows 10

This will launch Registry Editor with system account and hence the error to open a key will no longer occur now.

That’s it!

Share this article
https://www.kapilarya.com/fix-an-error-is-preventing-this-key-from-being-opened

Shareable URL

Article by

Kapil Arya
11x Microsoft MVP · Admin

Kapil holds Microsoft MVP title in Windows IT Pro expertise, 11-times in a row (2014-2025). He is 8-times Windows Insider MVP as well, and author of 'Windows Group Policy Troubleshooting' book. In 2015, Microsoft India accomplished him as 'Windows 10 Champion'. Being passionate Windows blogger, he loves to help others on fixing their system issues. Kapil has worked with official Microsoft Community Engagement Team (CET) on several community projects. You can subscribe him for news/updates and fixes for Windows.

11 Comments
EK Tan

Thank you. My problem is solved.

Kapil Arya Author

^^ Thanks for your feedback 😊

Bubloo

Hi even i am running through PsExec iam unable to delete it. Its showing drmkpro64 cannot be opened an error is preventing this key from being opened. Details:acess is denied
Plz help me
Thanks in advance.

Peter

I got message could not install psexecvc service
access is denied

i use admin acocunt!

Peter

after entering: psexec -i -d -s c:\windows\regedit.exe
get message:
couldn’t install PSEXESVC service:
Access is denied

Alen

Thank you million times!

Kapil Arya Author

^^ Glad we could help 😎

JD

Hello,

This did not work to delete the Avast Software key from my registry (Windows 7 Ultimate).

What to do?

Thanks!

Kapil Arya Author

^^ Check with Avast and try their dedicated uninstall tool to remove AV.

Simon Musson

This fixed my problem. Thanks.

Kapil Arya Author

^^ Glad to help 😊

Leave a Comment

Your email address will not be published. Required fields are marked *