Overview of Scripting in VMM
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.
Provides an overview of using Windows PowerShell with VMM.
Explains how to get help for the VMM cmdlets.
Describes how to manage VMM objects by using the VMM Command Shell.
Illustrates how to use the View Script button in VMM wizards and property pages to create reusable scripts.
Explains where to store your scripts and how to run them from their stored location.
Discusses using Run As accounts and PSCredential objects in a script.
Describes how to use the JobGroup parameter to run multiple cmdlets as a set.