Windows 7 - Can't delete registry key

Posted on 2010-11-26
Last Modified: 2012-05-10
When trying to delete a key in the registry, 64-bit Windows 7 says "Cannot delete <key>. Error while deleting key." I've removed inherited permissions, I'm the owner, and I have full control. The key is in HKEY_CLASSES_ROOT\VirtualStore. (The key refers to a program that I uninstalled, but it left keys defined in the registry.)
Question by:alconlabs

Expert Comment

ID: 34220859
LVL 32

Expert Comment

ID: 34221449
Firstly - if you have UAC turned on, make sure that you run regedit from an elevated command prompt. (create a shortcut to cmd on your desktop, right-click, run as Administrator)

If you still have no luck - try deleting the key in Safe Mode (

LVL 12

Expert Comment

by:John Griffith
ID: 34221882
Activate Hidden Admin user account - it has full Admin permissions -

Accepted Solution

alconlabs earned 0 total points
ID: 34222326
Turns out this registry key (in VirtualStore) was a mirror of a key elsewhere in the registry. Removing that key resulted in this one being deleted automatically. Thanks for the suggestions.

Author Closing Comment

ID: 34255650
Answered my own question.

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You may have a outside contractor who comes in once a week or seasonal to do some work in your office but you only want to give him access to the programs and files he needs and keep privet all other documents and programs, can you do this on a loca…
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question