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. По умолчанию используется текущий сеанс на локальном компьютере.

Псевдонимы

none

Обязательное поле?

true

Позиция?

1

Значение по умолчанию

none

Принимать входные данные конвейера?

true(ByValue)

Обрабатывать символы-шаблоны?

false

-ClusterName<String[]>

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

Псевдонимы

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.

Псевдонимы

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.

Псевдонимы

none

Обязательное поле?

true

Позиция?

1

Значение по умолчанию

none

Принимать входные данные конвейера?

true(ByValue)

Обрабатывать символы-шаблоны?

false

-Passthru

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

Псевдонимы

none

Обязательное поле?

false

Позиция?

named

Значение по умолчанию

none

Принимать входные данные конвейера?

false

Обрабатывать символы-шаблоны?

false

-SharedStoragePath<String>

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

Псевдонимы

none

Обязательное поле?

false

Позиция?

named

Значение по умолчанию

none

Принимать входные данные конвейера?

false

Обрабатывать символы-шаблоны?

false

<CommonParameters>

Этот командлет поддерживает общие параметры: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer и -OutVariable. Дополнительные сведения см. в разделе  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