Set-VMHostCluster
Set-VMHostCluster
Configures a virtual machine host cluster.
Sintaxis
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>]
Descripción detallada
The Set-VMHostCluster cmdlet configures a virtual machine host cluster.
Parámetros
-CimSession<CimSession[]>
Ejecuta el cmdlet en una sesión remota o en un equipo remoto. Escriba un nombre de equipo o un objeto de sesión, como la salida de un cmdlet New-CimSession o Get-CimSession. El valor predeterminado es la sesión actual en el equipo local.
Alias |
none |
¿Necesario? |
true |
¿Posición? |
1 |
Valor predeterminado |
none |
¿Aceptar la entrada de la canalización? |
true(ByValue) |
¿Aceptar caracteres comodín? |
false |
-ClusterName<String[]>
Specifies an array of names of the virtual machine host clusters that this cmdlet configures.
Alias |
none |
¿Necesario? |
true |
¿Posición? |
1 |
Valor predeterminado |
none |
¿Aceptar la entrada de la canalización? |
true(ByValue) |
¿Aceptar caracteres comodín? |
false |
-Credential<PSCredential[]>
Specifies one or more user accounts that have permission to perform this action. The default is the current user.
Alias |
none |
¿Necesario? |
false |
¿Posición? |
2 |
Valor predeterminado |
none |
¿Aceptar la entrada de la canalización? |
true(ByValue) |
¿Aceptar caracteres comodín? |
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.
Alias |
none |
¿Necesario? |
true |
¿Posición? |
1 |
Valor predeterminado |
none |
¿Aceptar la entrada de la canalización? |
true(ByValue) |
¿Aceptar caracteres comodín? |
false |
-Passthru
Indicates that this cmdlet returns the Microsoft.HyperV.PowerShell.VMHostCluster object that it configures.
Alias |
none |
¿Necesario? |
false |
¿Posición? |
named |
Valor predeterminado |
none |
¿Aceptar la entrada de la canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-SharedStoragePath<String>
Specifies the location of the shared storage for the virtual machine host cluster.
Alias |
none |
¿Necesario? |
false |
¿Posición? |
named |
Valor predeterminado |
none |
¿Aceptar la entrada de la canalización? |
false |
¿Aceptar caracteres comodín? |
false |
<CommonParameters>
Este cmdlet admite los parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, vea about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entradas
El tipo de entrada es el tipo de objetos que se pueden canalizar al cmdlet.
Salidas
El tipo de resultado es el tipo de los objetos que el cmdlet emite.
Microsoft.HyperV.PowerShell.VMHostCluster
This cmdlet returns a VMHostCluster object, if you specify the Passthru parameter.
Ejemplos
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"