Export (0) Print
Expand All

Overview of Scripting in VMM

Updated: November 1, 2013

Applies To: System Center 2012 - Virtual Machine Manager, System Center 2012 R2 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.

 

Topic Description

Getting Started with Windows PowerShell and VMM

Provides an overview of using Windows PowerShell with VMM.

Getting Help for VMM Cmdlets

Explains how to get help for the VMM cmdlets.

Managing VMM Objects

Describes how to manage VMM objects by using the VMM Command Shell.

Creating a Script from VMM Wizards and Property Pages

Illustrates how to use the View Script button in VMM wizards and property pages to create reusable scripts.

Storing and Running Scripts in VMM

Explains where to store your scripts and how to run them from their stored location.

Providing Credentials in a VMM Script

Discusses using Run As accounts and PSCredential objects in a script.

Using Job Groups in VMM Scripts

Describes how to use the JobGroup parameter to run multiple cmdlets as a set.

See Also

-----
For additional resources, see Information and Support for System Center 2012.

Tip: Use this query to find online documentation in the TechNet Library for System Center 2012. For instructions and examples, see Search the System Center 2012 Documentation Library.
-----
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft