Get-SpacesPhysicalDisk
Get-SpacesPhysicalDisk
Gets all PhysicalDisk objects that can be used with Storage Spaces to form a storage pool.
Syntaxe
Parameter Set: None
Get-SpacesPhysicalDisk [[-OnlyListAvailable]] [[-BusType] <String> ] [[-Throttle] <Int32> ] [ <CommonParameters>]
Parameter Set: ByClusterFriendlyName
Get-SpacesPhysicalDisk [[-OnlyListAvailable]] [[-BusType] <String> ] [-ClusterFriendlyName] <String> [[-Throttle] <Int32> ] [ <CommonParameters>]
Parameter Set: ByComputerList
Get-SpacesPhysicalDisk [[-OnlyListAvailable]] [[-BusType] <String> ] [-ServerToCompare] <String[]> [[-Throttle] <Int32> ] [ <CommonParameters>]
Description détaillée
The Get-SpacesPhysicalDisk cmdlet gets all PhysicalDisk objects that are available to use with Storage Spaces.
Paramètres
-BusType<String>
Specifies on which bus to obtain PhysicalDisk objects. The acceptable values for this parameter are: iSCSI, SAS, SATA, and USB.
Alias |
none |
Obligatoire ? |
false |
Position ? |
2 |
Valeur par défaut |
none |
Accepter l’entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
false |
-ClusterFriendlyName<String>
Alias |
none |
Obligatoire ? |
true |
Position ? |
3 |
Valeur par défaut |
none |
Accepter l’entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
false |
-OnlyListAvailable
Specifies that the cmdlet should only get PhysicalDisk objects that are available to add to a storage pool (they do not already belong to a storage pool other than the primordial pool).
Alias |
none |
Obligatoire ? |
false |
Position ? |
1 |
Valeur par défaut |
none |
Accepter l’entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
false |
-ServerToCompare<String[]>
Gets all physical disks that are common between the local computer and the specified remote computers.
Alias |
none |
Obligatoire ? |
true |
Position ? |
3 |
Valeur par défaut |
none |
Accepter l’entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
false |
-Throttle<Int32>
Alias |
none |
Obligatoire ? |
false |
Position ? |
4 |
Valeur par défaut |
none |
Accepter l’entrée de pipeline ? |
false |
Accepter les caractères génériques ? |
false |
<CommonParameters>
Cette applet de commande prend en charge les paramètres courants : -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer et -OutVariable. Pour plus d’informations, consultez about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entrées
Le type d’entrée correspond au type des objets que vous pouvez transmettre à l’applet de commande.
- None
Sorties
Le type de sortie est le type des objets émis par l’applet de commande.
Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_PhysicalDisk
This cmdlet returns objects that represent physical disks.
Exemples
Example 1 – Display physical disks
This example displays all physical disks available to Storage Spaces on the local computer.
PS C:\> Get-SpacesPhysicalDisk
Example 2 – Display physical disks not in a pool
This example displays physical disks that are not currently allocated to a storage pool.
PS C:\> Get-SpacesPhysicalDisk -OnlyListAvailable
Example 3 – Display physical disks common to the local computer and remote servers
This example displays all common physical disks between the local computer and two servers, BigOrange1 and BigOrange2.
PS C:\> Get-SpacesPhysicalDisk -ServerToCompare BigOrange1, BigOrange2
Example 4 – Display physical disks common to a failover cluster
This example displays all common physical disks among nodes in cluster named DeepSpaceCluster.
PS C:\> Get-SpacesPhysicalDisk -ClusterFriendlyName DeepSpaceCluster