Get-SpacesPhysicalDisk
Get-SpacesPhysicalDisk
Gets all PhysicalDisk objects that can be used with Storage Spaces to form a storage pool.
Sintaxis
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>]
Descripción detallada
The Get-SpacesPhysicalDisk cmdlet gets all PhysicalDisk objects that are available to use with Storage Spaces.
Parámetros
-BusType<String>
Specifies on which bus to obtain PhysicalDisk objects. The acceptable values for this parameter are: iSCSI, SAS, SATA, and USB.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
2 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-ClusterFriendlyName<String>
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
3 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
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 |
ninguno |
¿Requerido? |
false |
¿Posición? |
1 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-ServerToCompare<String[]>
Gets all physical disks that are common between the local computer and the specified remote computers.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
3 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-Throttle<Int32>
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
4 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
<CommonParameters>
Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entradas
El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.
- None
Salidas
El tipo de resultado es el tipo de objetos que emite el cmdlet.
Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_PhysicalDisk
This cmdlet returns objects that represent physical disks.
Ejemplos
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