Accessing the contents of a VHD on another computer

Posted on 2013-01-26
Medium Priority
Last Modified: 2016-11-23
Have a VHD that was running Windows 2008, but cannot login because of a probable virus attack.  Trying to find a way to recover some of the data and do not want to start the VM on the server for fear of the virus.  Was hoping to dump the contents to a physical drive like a USB drive, but doesn't appear that is possible?

Have another Hyper-V server that I can try to copy the VHD to and try to work with it that way.  Should I attempt an export or can I just copy the VHD file?   Both are Dell PE R710 server, are there considerations besides similar hardware?  

Question by:Webcc
LVL 85

Accepted Solution

David Johnson, CD, MVP earned 1000 total points
ID: 38823411
just copy the vhd you can then mount the vhd either using diskpart or diskmgmt.msc
and copy off the files you want to save

Author Comment

ID: 38823454
Now that was easy, just tried that on another server.  Can I just copy the VHD file and then mount it that way on another server w/o any concerns about hardware, etc?
LVL 97

Assisted Solution

by:Lee W, MVP
Lee W, MVP earned 500 total points
ID: 38823502
There's nothing special about a VHD that should be of any concern to hardware.  Just mount it as you did.  HOWEVER, make sure you disable autorun *IF*  you think it was infected with a virus - otherwise, mounting it can end up infecting the host.

Assisted Solution

balmasri earned 500 total points
ID: 38823546
either you can  copy the VHD file to the other Hyper-V Server and create a new VM but you will loose network settings. OR you may copy  VHD + XML file of the VM then import it to preserve the settings of the VM.

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question