Disable-ClusterStorageSpacesDirect
Disable-ClusterStorageSpacesDirect
Disables Storage Spaces Direct.
Syntax
Parameter Set: InputObject
Disable-ClusterStorageSpacesDirect [-CleanupCache] [-Cluster <String> ] [-Force] [-InputObject <PSObject> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Detaillierte Beschreibung
The Disable-ClusterStorageSpacesDirect cmdlet disables highly available Storage Spaces that use directly attached storage (Storage Spaces Direct) on a cluster.
Parameter
-CleanupCache
Indicates that this cmdlet flushes and purges data from solid-state drives (SSDs). The cmdlet removes cache partitions. This removal can take a significant amount of time.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-Cluster<String>
Specifies the name of the cluster on which to run this cmdlet. If the input for this parameter is .
or it is omitted, then the cmdlet runs on the local cluster.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-Force
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-InputObject<PSObject>
Specifies the input to this cmdlet. You can use this parameter, or you can pipe the input to this cmdlet.
Aliase |
none |
Erforderlich? |
false |
Position? |
named |
Standardwert |
none |
Pipelineeingaben akzeptieren? |
true(ByValue) |
Platzhalterzeichen akzeptieren? |
false |
-Confirm
Fordert Sie vor der Ausführung des Cmdlet zum Bestätigen auf.
Erforderlich? |
false |
Position? |
named |
Standardwert |
false |
Pipelineeingaben akzeptieren? |
false |
Platzhalterzeichen akzeptieren? |
false |
-WhatIf
Zeit, was passieren würde, wenn das Cmdlet ausgeführt wird. Das Cmdlet wird nicht ausgeführt.
Erforderlich? |
false |
Position? |
named |
Standardwert |
false |
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.
Beispiele
Example 1: Disable Storage Spaces Direct
This command disables Storage Spaces Direct on the cluster named Contoso19-C2.production.contoso.com.
PS C:\> Disable-ClusterStorageSpacesDirect -Cluster "Contoso19-C2.production.contoso.com"
Example 2: Disable Storage Spaces Direct by using the pipeline
This command gets the cluster named Contoso19-C2.production.contoso.com by using the Get-Cluster cmdlet. The command passes that cluster to the current cmdlet by using the pipeline operator. That cmdlet rnables Storage Spaces Direct on the cluster.
PS C:\> Get-Cluster -Cluster "Contoso19-C2.production.contoso.com" | Disable-ClusterStorageSpacesDirect