Get-SpacesPhysicalDisk
Get-SpacesPhysicalDisk
Gets all PhysicalDisk objects that can be used with Storage Spaces to form a storage pool.
語法
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>]
詳細描述
The Get-SpacesPhysicalDisk cmdlet gets all PhysicalDisk objects that are available to use with Storage Spaces.
參數
-BusType<String>
Specifies on which bus to obtain PhysicalDisk objects. The acceptable values for this parameter are: iSCSI, SAS, SATA, and USB.
別名 |
無 |
必要? |
false |
位置? |
2 |
預設值 |
無 |
接受管線輸入? |
false |
接受萬用字元? |
false |
-ClusterFriendlyName<String>
別名 |
無 |
必要? |
true |
位置? |
3 |
預設值 |
無 |
接受管線輸入? |
false |
接受萬用字元? |
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).
別名 |
無 |
必要? |
false |
位置? |
1 |
預設值 |
無 |
接受管線輸入? |
false |
接受萬用字元? |
false |
-ServerToCompare<String[]>
Gets all physical disks that are common between the local computer and the specified remote computers.
別名 |
無 |
必要? |
true |
位置? |
3 |
預設值 |
無 |
接受管線輸入? |
false |
接受萬用字元? |
false |
-Throttle<Int32>
別名 |
無 |
必要? |
false |
位置? |
4 |
預設值 |
無 |
接受管線輸入? |
false |
接受萬用字元? |
false |
<CommonParameters>
此 Cmdlet 支援一般參數:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 與 -OutVariable。如需詳細資訊,請參閱 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
輸入
輸入類型是您可以使用管線處理方式傳遞給 Cmdlet 的物件類型。
- None
輸出
輸出類型是 Cmdlet 所發出的物件類型。
Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_PhysicalDisk
This cmdlet returns objects that represent physical disks.
範例
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