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

How can i edit the registry from the Windows Vista recovery tool?

The recovery tool provides 5 options:

  • Startup Repair
  • System Restore
  • Windows Complete PC Restore
  • Windows Memory Diagnostic Tool
  • Command Prompt

i can click Command Prompt, from where i can type:


And RegEdit appears. But it is editing the registry of the mini-Windows environment that is running the recovery tool - it's not my registry.

i need to edit


and change it to


What i tried

i tried creating a dummy key:


and then using File -> Import to import the registry hive file:


and it does, it brings in every key, except CurrentControlSet:

share|improve this question
Wait, if you use Import, doesn't it copy all the information from the hive file into the mini-Windows environment's registry, instead of giving you access to the hive file? – Ilya Dec 8 '11 at 13:41
@ilya No, it "mounts" the hive to a specified key. – Ian Boyd Dec 8 '11 at 14:20
Ah, cool. I thought you have to use "REG LOAD" for that. – Ilya Dec 8 '11 at 14:54
For posterity and @IanBoyd, it actually does matter whether you "import" or "load hive". Import only copies sub-keys from a selected hive file and modifying this copy does not change the actual hive you imported from. "Load Hive" does the opposite, and is what you need to do to accomplish what you described. (Tested on Windows Server 2008.) – Dav Sep 5 '13 at 3:14
up vote 4 down vote accepted

The quick answer, you're pretty much there. Check value of Current in the key HKEY_LOCAL_MACHINE\SYSTEM\Select. This will tell you which of the CurrentControlSet00X's you need to make your change in.

For example, if Current is set to 2, you need to edit HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet002 with your changes.

The way it works is this:

Windows always keeps a few copies of this key, suffixed 001 to 003 (only 2 in Windows 7 I think?). CurrentControlSet001, CurrentControlSet002 and CurrentControlSet003. Think of them as the master keys that are persistent while the computer is switched off.

When you log into Windows, it picks the last used key, using the value of Current in the HKEY_LOCAL_MACHINE\SYSTEM\Select key. The content is copied into a key called HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet. This key is what Windows plays with while you are logged on.

When you log off of Windows, changes are written back to the key that was original copied from when you first logged on. CurrentControlSet002 for example. CurrentControlSet vanishes, so to speak. This is why you are unable to see it while you are logged off, working from the recovery console :-)

Probably a bit over the top with my answer (I blame the Red Bull), but I figured I'd answer a detailed question with a detailed answer.

share|improve this answer
+1 for thorough answer. Unfortunatly i was able to find the CD with SATA drivers for my motherboard's hard drive controller, and i was able to run the "Repair" option. That is a long way of saying that i wasn't able to text your answer. But it seems reasonable. So "accepted". – Ian Boyd Feb 28 '10 at 19:55

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.