Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


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

17 May 2012   #1
eitheta

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 Win7 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
pjhutch

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
eitheta

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 ?




Thread Tools





Similar help and support threads
Thread Forum
Registry export to .txt
Hello, I need to export registry key to .txt file by using .bat file, but it's kinda complicated :) Here is what I built if exist %temp%version.txt del /q %temp%\version.txt regedit /e %temp%\version.txt "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Version Vector"
General Discussion
export registry
I have 2 hdd, a}hdd 160 giga-win 7 b) hdd 250 giga win 7 Note The program content of hdd a not same with hdd b Can I export reg file from hdd b and merge it to hdd a ?? I do that because hdd a running in unormaly and hdd b run win7 smooth and very normal with no problem....
Backup and Restore
How to export a registry settings for some applications?
Hi, can you please, explain how to export a registry settings for some applications (in my example only for Windows Sidebar-Gadgets and Windows Mail)? Are all of the registry keys for those applications in HKEY_LOCAL_MACHINE i.e. or man must some more registry keys export? Thx.
General Discussion
Ready Boot/Read Boost ---- Registry Hack
Does anyone know how to edit the registry to instruct Ready Boot/Ready Boost to apply only to speeding up the launch of applications? I very rarely shut down my computer and when I do, I am not concerned with having it boot up any quicker than it already does. I would prefer to have...
Performance & Maintenance
how to replace my vista system image with a windows seven system image
Below is an image of my drives the hp recovery drives has my old system image file for windows vista which came with my pc i have upgraded to windows seven now i wanna know how can i delete the hp recovery drive and make that memory part of my main harddrive or/and how can i make a windows...
Backup and Restore
How to export command prompt settings frm the registry?
Hello, I configured the command prompt window (size, colors, position) and now want to export this settings from the registry to save them in a reg file for later use on other computers. These setting do get saved somewhere in the registry but I don't remember where (did this on XP a couple of...
General Discussion

Our Sites

Site Links

About Us

Find Us

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

All times are GMT -5. The time now is 00:07.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App