Get-SCPlacementConfiguration

Gets the placement configuration settings for a host group.

Description

The Get-SCPlacementConfiguration cmdlet gets the placement configuration settings that have been configured for a host group.

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

Parameters

VMHostGroup

Required? true
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a virtual machine host group object or an array of host group objects.

Confirm

Required? false
Accept Pipeline Input? false
Position? named
Prompts for confirmation before running the command.

VMMServer

Required? false
Accept Pipeline Input? false
Position? named
Specifies a VMM server object.

Examples

1: Get the placement configuration for a host group.
PS C:\> $HostGroup = Get-SCVMHostGroup "HostGroup01"
PS C:\> $PlacementConfig = Get-SCPlacementConfiguration -VMHostGroup $HostGroup
PS C:\> $PlacementConfig
The first command gets the host group object named HostGroup01 and stores the object in the $HostGroup variable.

The second command gets the placement configuration object for the host group stored in $HostGroup and places the object in the $PlacementConfig variable.

The last command displays the placement configuration settings for the placement configuration stored in $PlacementConfig for the user.

See Also