Start-SCDynamicOptimization

Starts dynamic optimization on a host cluster or host group.

Description

The Start-SCDynamicOptimization cmdlet manully starts the dynamic optimization process for a host cluster or host group.

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

Parameters

VMHostCluster

Required? true
Accept Pipeline Input? false
Position? named
Specifies a VMM host cluster object.

VMMServer

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

WhatIf

Required? false
Accept Pipeline Input? false
Position? named
Describes what would happen if you executed the command without actually executing the command.

VMHostGroup

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

VMMServer

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

WhatIf

Required? false
Accept Pipeline Input? false
Position? named
Describes what would happen if you executed the command without actually executing the command.

Examples

1: Optimize hosts in a cluster.
PS C:\> $Cluster = Get-SCVMHostCluster "Cluster01"
PS C:\> Start-SCDynamicOptimization -VMHostCluster $Cluster
The first command gets the host cluster object named Cluster01 and stores the object in the $Cluster variable.

The second command initiates the dynamic optimization process for the cluster stored in $Cluster.
2: Optimize hosts in a host group.
PS C:\> $HostGroup = Get-SCVMHostGroup "HostGroup01"
PS C:\> Start-SCDynamicOptimization -VMHostGroup $HostGroup
The first command gets the host group object named HostGroup01 and stores the object in the $HostGroup variable.

The second command initiates the dynamic optimization process for the host group stored in $HostGroup.

See Also