Start-SCDynamicOptimization

Start-SCDynamicOptimization

Starts dynamic optimization on a host cluster or host group.

Syntax

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

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

Detailed Description

The Start-SCDynamicOptimization cmdlet manully 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 or an array of host group objects.

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

-WhatIf

Describes what would happen if you executed the command without actually executing the command.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

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

1: Optimize hosts in a 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.

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

2: Optimize hosts in a host group.

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.

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

Get-SCVMHostCluster