Start-SCDynamicOptimization

Starts dynamic optimization on a host cluster or host group.

Syntax

Start-SCDynamicOptimization
     [-VMMServer <ServerConnection>]
     [-VMHostGroup] <HostGroup>
     [-WhatIf]
     [<CommonParameters>]
Start-SCDynamicOptimization
     [-VMMServer <ServerConnection>]
     [-VMHostCluster] <HostCluster>
     [-WhatIf]
     [<CommonParameters>]

Description

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

Examples

Example 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.

Example 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.

Required Parameters

-VMHostCluster

Specifies a Virtual Machine Manager (VMM) host cluster object.

Type:HostCluster
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMHostGroup

Specifies a virtual machine host group object or an array of host group objects.

Type:HostGroup
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-VMMServer

Specifies a VMM server object.

Type:ServerConnection
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

DynamicOptimizationResults

This cmdlet returns a DynamicOptimizationResults object.