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.
[More]
by Stan Czerno
July 21, 2011 13:17 CST
The script requires the PowerShell Management Library for Hyper-V for it to work. The PowerShell Management Library for Hyper-V can be downloaded at http://pshyperv.codeplex.com/
[More]
by Stan Czerno
July 21, 2011 13:15 CST
I schedule this script to run at Startup of the Hyper-V Host to check to see if VMs have been Live Migrated to another Host.
If the VM has this Host set as being the Preferred Owner, Live Migrate them back to this Node.
[More]
by Stan Czerno
July 21, 2011 13:09 CST
On a planned or gracefull Hyper-V Host Shutdown, Live Migrate VMs to another Node in the Cluster. This Script is designed to work with a Two-Node Cluster.
You need to configure Group Policy or the Local Policy for the host to have a Shutdown Script. You'll find these settings under Computer Settings > Windows Settings > Scripts (Startup/Shutdown).
[More]
by Stan Czerno
July 21, 2011 09:59 CST
This Script saves the state of each VMs first, takes a VSS Snapshot, restores each VMs, exposes the
[More]
by Stan Czerno
July 21, 2011 09:56 CST
This Script Shuts down all the VMs first then takes a VSS Snapshot, Starts the VMs, exposes the Snap
[More]