Download Center : Virtual Machine Manager Scripting Guide
The Virtual Machine Manager Scripting Guide explains how to create Microsoft Windows PowerShell scripts that execute Virtual Machine Manger 2007 commands, and provides many useful sample scripts.