Start-SCDynamicOptimization

Start-SCDynamicOptimization

Starts dynamic optimization on a host cluster or host group.

構文

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

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

詳細説明

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

パラメーター

-VMHostCluster<HostCluster>

Specifies a VMM host cluster object.

エイリアス

none

必須?

true

位置は?

1

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-VMHostGroup<HostGroup>

Specifies a virtual machine host group object.

エイリアス

none

必須?

true

位置は?

1

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-VMMServer<ServerConnection>

Specifies a VMM server object.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

True (ByValue)

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • DynamicOptimizationResults

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