by Stan Czerno
September 8, 2012 10:13 CST
Powershell Script to Shutdown and Export Hyper-V VMs, one at a time, for Windows Server 2012.
Now that I have rebuilt my cluster using Windows Server 2012, I had to change my Export script since the new Powershell Management for Hyper-V 2012 is different from the PowerShell Management Library for Hyper-V.
I added a Log File, which is emailed after the script finishes.
This script can be used on a Hyper-V 2012 - 2016 Cluster or Stand-Alone Hyper-V 2012 - 2016 Server.
Let me know what you think about the script and if you have a better way of doing this.
http://www.czerno.com/default.asp?inc=/html/windows/hyperv/cluster/HyperV2012_Export_VMs.asp