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>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

  • None

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • 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