Check out the TechEd video Windows Server 2008 Hyper-V: Scripting & Programmatic Management for Fun & Profit (VBS & PowerShell) by John Kelbley, and Alexander Lash.
Some of John’s example script are newly posed in the Official Scripting Guys Forum!, for example:
- Script to Start All VMs on a Hyper-V Server
- Script to List all VMs on a Hyper-V Server
- Script to Turn Off all Hyper-V VMs
- Script to Save State on all Running Hyper-V VMs
- Script to Start a VM?
- Script to Pause all Hyper-V VMs
Thanks to John for sharing these.