Powershell Script to Shutdown and Export Hyper-V VMs, one at a time, for Windows Server 2012.

by Stan Czerno September 8, 2012 15: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]

Tags: , ,

Catergories: Windows | HyperV | Powershell

Powershell Script to Shutdown and Export Hyper-V VMs, one at a time, for Windows Server 2008 R2.

by Stan Czerno July 21, 2011 18: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]

Tags: , ,

Catergories: Windows | HyperV | Powershell

Powershell script to Live Migrate Hyper-V Virtual Machines back to it's Preferred Owner in a Hyper-V 2008 R2 Cluster.

by Stan Czerno July 21, 2011 18: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]

Tags: , , , ,

Catergories: Windows | HyperV | Powershell

Powershell script to Live Migrate Hyper-V Virtual Machines to another Node in a Hyper-V 2008 R2 Cluster on a planned Host Shutdown

by Stan Czerno July 21, 2011 18: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]

Tags: , , , ,

Catergories: Windows | HyperV | Powershell

Hyper-V Virtual Machine Backup Script, which saves the state of the VMs.

by Stan Czerno July 21, 2011 14:59 CST
This Script saves the state of each VMs first, takes a VSS Snapshot, restores each VMs, exposes the [More]

Tags: ,

Catergories: Windows | HyperV | VBScript

Hyper-V Virtual Machine Backup Script, which shuts down the VMs.

by Stan Czerno July 21, 2011 14:56 CST
This Script Shuts down all the VMs first then takes a VSS Snapshot, Starts the VMs, exposes the Snap [More]

Tags: ,

Catergories: Windows | HyperV | VBScript