Below is some scripting available according to categories. check the link below to get some some sample on the VMM Scripting. Just go to http://technet.microsoft.com/en-us/library/cc764259.aspx.
VMM Scripting Guide - Click here
CMDLet Reference - Click here
Some useful scripting command to start:
Get-VMMServer –ComputerName “VMM FQDN”
note: Before using any cmdlets to access your managed environment, you first need to connect to your VMM server
Add-PSSnapin Microsoft.SystemCenter.VirtualMachineManager
note: Run the VMM cmdlets from the Windows PowerShell command window instead of the VMM command shell, you will need to add the VMM snap-in.
Get-Command –CommandType cmdlet –PSSnapin Microsoft.SystemCenter.VirtualMachineManagernote: see VMM command
My best friend:-
Get-helpnote:- to view sample and get help on the command.
Get-help-detailed
Get-help-example
Trust me ! You need to look into the above link when you do scripting in VMM.
p/s: document is provided by Microsoft.
Enjoy, Lai