Link to home
Start Free TrialLog in
Avatar of jerra
jerra

asked on

Import VM to Hyper-V using script?

I have a virtual domain named "labdomain" which I use for software testing. I have various Windows versions which I test software against. After testing I delete the VM's and when needed I import them again and start installing the software and test the functionality.
What I really need is a script to import the VM's. They are located on a separate hdd and I always import the same set of VM's. I always use the options "Move or restore .." and "Duplicate all files ..". This manual import is cumbersome, slow and prone to errors. E.g. forgetting to check the "Duplicate all files.." option.

I found a Powershell script suite made for Hyper-V which I tried, it is way too complicated to me. Never got it to work and since I have no clue how it works I am afraid I might break something.

Anyone here got ideas how to solve this?

I use the Hyper-V in Windows 2008 R2.
ASKER CERTIFIED SOLUTION
Avatar of Bill Louth
Bill Louth
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
Avatar of jerra
jerra

ASKER

Excellent, the copying of the .vhd works for me!