Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm creating a .reg file that will delete certain subkeys. So, just for an example, say I want to delete the 'Count' subkey, which is located here:


There are two subkeys in the user assist folder that look like this:

{5E39430943 etc}

Inside that, lies the 'Count' subkey. So the structure is like this:

 {5E39430943 etc}

I'm not 100% sure, but I think the second key MIGHT be a variable, that is, different on each computer.

So how would my registry file look if I wanted to delete that subkey but there was a variable parent key above?

Thanks in advance.

share|improve this question
Follow the instructions in this KB from Microsoft – NoLifeKing Aug 5 '13 at 8:38

I found that it's not a variable and that if you simply type in the key you want to create in the .reg file e.g


Enclosing it in [] so it looks like this:


It will create the key.

To delete the key, there should be a minus before the key, like this:


Hope this helps someone else.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.