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
System Image Recovery can only read 3 backups?
I have 6 system image backups from 6 different systems on my external HDD and I'm trying to recover system #6 but when I go to system image recovery (spamming F8 > Repair My Computer) it only shows the first 3 system image backups why is this? Temporary Solution: Move backups #12345 to a...
Backup and Restore
How can I export entire Win 7 registry via cmd.exe?
Hello, I know that via cmd.exe "reg export" can export individual root and sub keys to folder locations as files, but how can I export the entire registry through this method? I know it can be done through GUI via regedit.exe by clicking export. Thanks.
General Discussion
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


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 14:35.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App