Get-SCVMHostCluster

Gets a host cluster object.

Description

The Get-SCVMHostCluster cmdlet gets one or more host cluster objects from the System Center Virtual Machine Manager (VMM) database.

For more information about Get-SCVMHostCluster, type: "Get-Help Get-SCVMHostCluster -online".

Parameters

Name

Required? false
Accept Pipeline Input? false
Position? 0
Specifies the name of a VMM object.

VMMServer

Required? false
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a VMM server object.

Name

Required? false
Accept Pipeline Input? false
Position? 0
Specifies the name of a VMM object.

VMHostGroup

Required? true
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a virtual machine host group object.

Examples

1: Get all host clusters managed by a VMM server.
PS C:\> Get-SCVMHostCluster -VMMServer "VMMServer01.Contoso.com"
This command gets all host cluster objects on VMMServer01 and displays information about each host cluster to the user.
2: Get all host clusters managed by a VMM server and display the host cluster name and virtualization platform for each cluster.
PS C:\> Get-SCVMHostCluster -VMMServer "VMMServer01.Contoso.com" | select -Property Name, VirtualizationPlatform
This command gets all host cluster objects on VMMServer01 and passes each object to the select-object cmdlet which displays the name and virtualization platform for each host cluster.
3: Get a host cluster by name.
PS C:\> Get-SCVMHostCluster -Name "VMHostCluster03.Contoso.com"
This command gets the host cluster object named VMHostCluster03 and displays information about the cluster to the user.
4: Display the object type, methods, and properties for a host cluster managed by VMM.
PS C:\> Get-SCVMHostCluster -VMMServer "VMMServer01.Contoso.com" | Get-Member
This command gets the host cluster objects on VMMServer01 and then passes a host cluster object to the Get-Member cmdlet, which displays the .NET type for a host cluster object and the list of events, methods, and properties associated with a host cluster object.

See Also