Server Fault is a question and answer site for system and network administrators. 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

We are running a test install of Hyper-V Server 2008 (Stand Alone Free Version).

I was wondering if there is anyway to backup the VHD's using the command line as this is all you have. I know you can use System Center Data Protection Manager but this costs a fortune. We don't mind if they pause the VM's for a few minutes. :)

Any help would be great. Thanks Al

share|improve this question
I haven't tried this myself, but what happens if you just try to do a regular copy (ie. xcopy) of the VHD without pausing the server? Does it result in an inconsistent or unbootable image? – Nic Oct 20 '09 at 8:10
Here is the solution I had come up with.… – Doug Luxem Nov 5 '09 at 14:33

If you have Hyper-V Server 2008 R2 you can enable PowerShell ( and then use the PowerShell Management Library for Hyper-V available on codeplex.

The PowerShell library will allow you to script the pausing/shutdown of virtual machines before backing up the VHD files and restarting them automatically. There are several commands in the library listed under, Backing up, exporting and snapshotting VMs.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.