Managing a VMware Environment Using Scripts

Applies To: Virtual Machine Manager 2008, Virtual Machine Manager 2008 R2, Virtual Machine Manager 2008 R2 SP1

You can use most of the cmdlets that are provided with System Center Virtual Machine Manager (VMM) 2008 to manage your VMware environment using scripts as you would in a Hyper-V or Microsoft Virtual Server environment. Additionally, VMM provides cmdlets and supplementary syntax to existing cmdlets that support unique functionalities that are provided by VMware, such as managing the VirtualCenter server and moving virtual machines by using VMware VMotion. For example, you can use the Add-VirtualizationManager cmdlet to add a VirtualCenter Server. For more information, see AddVirtualCenterServer.ps1.

After you add the VirtualCenter Server, you can manage the VMware ESX Server hosts. For more information about how to add ESX Server hosts, see How to Add an ESX Server Host Using a Script.

For more information about managing a VMware environment in VMM, see Managing a VMware Infrastructure in VMM (https://go.microsoft.com/fwlink/?LinkId=128921) and Managing a VMware Infrastructure 3 Environment in VMM (https://go.microsoft.com/fwlink/?LinkId=162782).

In This Section

How to Add an ESX Server Host Using a Script

Sample Scripts to Manage a VMware Environment