Windows 7 Forums


Windows 7: Can I Read or Export Key from Registry in System Image VHD ?

17 May 2012   #1

Win7 Pro x64
 
 
Can I Read or Export Key from Registry in System Image VHD ?

There is a registry key that I'd like to copy from my old computer to my new computer (both Windows 7 Pro x64). But the old computer only exists as a System Image (VHD file).
I can mount the VHD and access the old filesystem - I have copied several critical files from the old to the new this way. But the registry isn't just an ordinary file. And I don't want to overwrite the entire registry with the one from the old machine - just one key (basically just a magic number).

Is there any method easier than restoring the old machine's image onto another box, so I can run regedit? I hope so.

Thanks!

My System SpecsSystem Spec

19 May 2012   #2

Windows 7 Home Premium 32bit
 
 

What you need to do is copy the registry files (see c:\Windows\System32\config) or the user registry (see C:\Users\username\ntuser.dat from the mounted vhd to a work area.
Load up Regedit, select either HKEY_LOCAL_MACHINE for use with Software or System registry files, or HKEY_USERS for user data. Then click File, Load Hive and select the registry file to use. Give the hive a name (anything you like) and it will add it and then you can browse through it and view or export the bits you need. You can then delete it from Regedit when done.
My System SpecsSystem Spec
20 May 2012   #3

Win7 Pro x64
 
 

Thanks! This idea worked - I was able to recover the key I needed. I hit a few gotchas along the way... The user registry has moved, as of Vista. But a bit more googling found that the locations of the various hives are given in Wikipedia ( Windows Registry - Wikipedia, the free encyclopedia ) if I'd only thought to look there. And for whatever odd reason, once I'd mounted the VHD using Computer Management : Disk Management : Attach VHD, I was unable to copy the Usrclass.dat file from the mounted VHD to another drive. But since the VHD I had mounted was a copy anyway, I just did the Load Hive directly off of the mounted VHD. And "Load Hive" only works into HKU or HKLM, so I just added the hive into HKU.
Many thanks to pjhutch!
My System SpecsSystem Spec
.


Reply

 Can I Read or Export Key from Registry in System Image VHD ? problems?



Thread Tools



Similar help and support threads for: Can I Read or Export Key from Registry in System Image VHD ?
Thread Forum
export registry Backup and Restore
change control panel settings in registry export to another system Performance & Maintenance
registry read error Installation & Setup
How to export a registry settings for some applications? General Discussion
How to export command prompt settings frm the registry? General Discussion


All times are GMT -5. The time now is 02:43 PM.


Seven Forums Android App Seven Forums IOS App Follow us on Facebook

Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32