Letzte Aktualisierung: Oktober 2008

Betrifft: Virtual Machine Manager 2008, Virtual Machine Manager 2008 R2, Virtual Machine Manager 2008 R2 SP1

The following script adds a host cluster to System Center Virtual Machine Manager (VMM).


# Filename:      AddHostCluster.ps1
# Description:   Adds a host cluster to VMM.

# Define the variables.
$Credential = get-credential
# The host group path in the following line is the default location. 
# To change the location, provide a different host group path.
$VMHostGroup = Get-VMHostGroup -VMMServer "" | where {$_.Path -eq "All Hosts"}

# Add the host cluster.
Add-VMHostCluster -VMMServer "" -Credential $Credential -Name "" -VMHostGroup $VMHostGroup -Description "" -RemoteConnectEnabled $true -Reassociate $false -RunAsynchronously -RemoteConnectPort 2179

Siehe auch