Set-VMHostCluster

Set-VMHostCluster

Configures a virtual machine host cluster.

構文

Parameter Set: CimSession
Set-VMHostCluster [-CimSession] <CimSession[]> [-Passthru] [-SharedStoragePath <String> ] [ <CommonParameters>]

Parameter Set: ClusterName
Set-VMHostCluster [-ClusterName] <String[]> [[-Credential] <PSCredential[]> ] [-Passthru] [-SharedStoragePath <String> ] [ <CommonParameters>]

Parameter Set: InputObject
Set-VMHostCluster [-InputObject] <VMHostCluster[]> [-Passthru] [-SharedStoragePath <String> ] [ <CommonParameters>]

詳細説明

The Set-VMHostCluster cmdlet configures a virtual machine host cluster.

パラメーター

-CimSession<CimSession[]>

リモート セッションまたはリモート コンピューターでコマンドレットを実行します。コンピューター名またはセッション オブジェクト (New-CimSession コマンドレットや Get-CimSession コマンドレットの出力など) を入力します。既定値は、ローカル コンピューター上の現在のセッションです。

Aliases

none

必須/オプション

true

位置

1

既定値

none

パイプライン入力の受け入れ

true(ByValue)

ワイルドカード文字の受け入れ

false

-ClusterName<String[]>

Specifies an array of names of the virtual machine host clusters that this cmdlet configures.

Aliases

none

必須/オプション

true

位置

1

既定値

none

パイプライン入力の受け入れ

true(ByValue)

ワイルドカード文字の受け入れ

false

-Credential<PSCredential[]>

Specifies one or more user accounts that have permission to perform this action. The default is the current user.

Aliases

none

必須/オプション

false

位置

2

既定値

none

パイプライン入力の受け入れ

true(ByValue)

ワイルドカード文字の受け入れ

false

-InputObject<VMHostCluster[]>

Specifies an array of virtual machine host clusters that this cmdlet configures. To obtain a VMHostCluster object, use the Get-VMHostCluster cmdlet.

Aliases

none

必須/オプション

true

位置

1

既定値

none

パイプライン入力の受け入れ

true(ByValue)

ワイルドカード文字の受け入れ

false

-Passthru

Indicates that this cmdlet returns the Microsoft.HyperV.PowerShell.VMHostCluster object that it configures.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

-SharedStoragePath<String>

Specifies the location of the shared storage for the virtual machine host cluster.

Aliases

none

必須/オプション

false

位置

named

既定値

none

パイプライン入力の受け入れ

false

ワイルドカード文字の受け入れ

false

<CommonParameters>

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

入力

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

出力

出力型は、コマンドレットが出力するオブジェクトの型です。

  • Microsoft.HyperV.PowerShell.VMHostCluster

    This cmdlet returns a VMHostCluster object, if you specify the Passthru parameter.

使用例

Example 1: Configure a virtual machine host cluster

This command configures the shared storage path for the cluster named ContosoCluster.

PS C:\> Set-VMHostCluster -ClusterName "ContosoCluster" -SharedStoragePath "D:\ClusterStorage\cluster01" 

関連項目

Get-VMHostCluster