Set-VMHostCluster
Set-VMHostCluster
Configures a virtual machine host cluster.
Syntax
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>]
Detaillierte Beschreibung
The Set-VMHostCluster cmdlet configures a virtual machine host cluster.
Parameter
-CimSession<CimSession[]>
Das Cmdlet wird in einer Remotesitzung oder auf einem Remotecomputer ausgeführt. Geben Sie einen Computernamen oder ein Sitzungsobjekt ein, wie z. B. die Ausgabe eines New-CimSession oder Get-CimSession-Cmdlets. Der Standardwert ist die aktuelle Sitzung auf dem lokalen Computer.
Aliase |
none |
Erforderlich? |
true |
Position? |
1 |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
true(ByValue) |
Platzhalterzeichen akzeptieren? |
false |
-ClusterName<String[]>
Specifies an array of names of the virtual machine host clusters that this cmdlet configures.
Aliase |
none |
Erforderlich? |
true |
Position? |
1 |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
true(ByValue) |
Platzhalterzeichen akzeptieren? |
false |
-Credential<PSCredential[]>
Specifies one or more user accounts that have permission to perform this action. The default is the current user.
Aliase |
none |
Erforderlich? |
false |
Position? |
2 |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
true(ByValue) |
Platzhalterzeichen akzeptieren? |
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.
Aliase |
none |
Erforderlich? |
true |
Position? |
1 |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
true(ByValue) |
Platzhalterzeichen akzeptieren? |
false |
-Passthru
Indicates that this cmdlet returns the Microsoft.HyperV.PowerShell.VMHostCluster object that it configures.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-SharedStoragePath<String>
Specifies the location of the shared storage for the virtual machine host cluster.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
<CommonParameters>
Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer und -OutVariable. Weitere Informationen finden Sie unter about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Eingaben
Der Eingabetyp ist der Typ der Objekte, die Sie per Piping an das Cmdlet übergeben können.
Ausgaben
Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.
Microsoft.HyperV.PowerShell.VMHostCluster
This cmdlet returns a VMHostCluster object, if you specify the Passthru parameter.
Beispiele
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"