Overview of Scripting in VMM

 

Updated: May 13, 2016

Applies To: System Center 2012 R2 Virtual Machine Manager, System Center 2012 - Virtual Machine Manager

System Center 2012 – Virtual Machine Manager (VMM) is a management solution for the virtualized datacenter, enabling you to configure and manage your virtualization host, networking, and storage resources in order to create and deploy virtual machines and services to virtual machine hosts and private clouds. The VMM command shell allows you to perform all VMM administrative functions by using commands or scripts.

The VMM command shell includes all the standard Windows PowerShell cmdlets and a comprehensive set of cmdlets that are designed specifically for VMM. You can use standard Windows PowerShell cmdlets together with VMM cmdlets from the command line, or combine them to create scripts that automate complex tasks.

The sample scripts provided in each section illustrate how you can use the VMM cmdlets for centralized management of your physical and virtual infrastructure in your System Center 2012 – Virtual Machine Manager environment. You can modify these scripts to work in your environment, or use the concepts illustrated in the examples as a starting point for writing your own custom scripts.

The following topics provide information about using the System Center 2012 – Virtual Machine Manager cmdlets, finding help for the VMM cmdlets, and creating scripts with the VMM cmdlets.

TopicDescription
Getting Started with Windows PowerShell and VMMProvides an overview of using Windows PowerShell with VMM.
Getting Help for VMM CmdletsExplains how to get help for the VMM cmdlets.
Managing VMM ObjectsDescribes how to manage VMM objects by using the VMM Command Shell.
Creating a Script from VMM Wizards and Property PagesIllustrates how to use the View Script button in VMM wizards and property pages to create reusable scripts.
Storing and Running Scripts in VMMExplains where to store your scripts and how to run them from their stored location.
Providing Credentials in a VMM ScriptDiscusses using Run As accounts and PSCredential objects in a script.
Using Job Groups in VMM ScriptsDescribes how to use the JobGroup parameter to run multiple cmdlets as a set.

VMM Cmdlet Help Topics
VMM Cmdlet About Help Topics

Show: