Start-SCDynamicOptimization

Start-SCDynamicOptimization

Starts dynamic optimization on a host cluster or host group.

Syntax

Parameter Set: ByHostCluster
Start-SCDynamicOptimization [-VMHostCluster] <HostCluster> [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Parameter Set: ByHostGroup
Start-SCDynamicOptimization [-VMHostGroup] <HostGroup> [-VMMServer <ServerConnection> ] [ <CommonParameters>]

Detailed Description

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

Parameters

-VMHostCluster<HostCluster>

Specifies a VMM host cluster object.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-VMHostGroup<HostGroup>

Specifies a virtual machine host group object.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-VMMServer<ServerConnection>

Specifies a VMM server object.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • DynamicOptimizationResults

Examples

Example 1: Optimize hosts in a cluster

The first command gets the host cluster object named Cluster01, and then stores the object in the $Cluster variable.

The second command initiates the dynamic optimization process for the cluster stored in $Cluster.

PS C:\> $Cluster = Get-SCVMHostCluster -Name "Cluster01"
PS C:\> Start-SCDynamicOptimization -VMHostCluster $Cluster

Example 2: Optimize hosts in a host group

The first command gets the host group object named HostGroup01, and then stores the object in the $HostGroup variable.

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

PS C:\> $HostGroup = Get-SCVMHostGroup -Name "HostGroup01"
PS C:\> Start-SCDynamicOptimization -VMHostGroup $HostGroup

Get-SCVMHostCluster

Get-SCVMHostGroup