Link to home
Start Free TrialLog in
Avatar of SteveDot
SteveDotFlag for United States of America

asked on

Hyper-V Lab setup

I have five 2008 R2 machines that each have a XP,Vista x86, Vista x64, Win7 x86 and Win7 x64 guest operating systems.

What I can't seem to figure out is a good way to every night restore the machines back to how they are now. We are going to be using them in a test lab with software installed but the department that is going to be using them is going to be messing with configs and setups to test different things with our customers.  So since they are going to be making all different kinds of changes, I wanted to create a job that will restore the guest OS back to a fresh copy.

There are two ways I was looking at doing this:
1.)Save a copy of all the VHDs to how I want them to be and then create a job each night that would stop the VM and then copy that VHD over the one that the VM is using.  
2.) Create a snapshot and then have a job apply that snapshot each night.

But I am not sure if either of these is the best why to go about this, and two how to actually do it. I've been looking at PS scripts and have only found a way to create and export snapshots, not apply them.
ASKER CERTIFIED SOLUTION
Avatar of mdmiddle
mdmiddle
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial