Search This Blog

Friday, July 23, 2010

Scripting in VMM 2008 R2

New link updated in "Learn more "(on the right) . This time i have added VMM 2008 R2 Scripting.

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.


To learn more, get free document about:-

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.VirtualMachineManager
note: see VMM command

My best friend:-
Get-help
Get-help -detailed
Get-help -example
note:- to view sample and get help on the command.

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