Resize-SpacesVolume

Resize-SpacesVolume

Resizes storage spaces and file system volumes.

構文

Parameter Set: Default
Resize-SpacesVolume [-SpaceFriendlyName] <String> [-NewSize] <String> [[-StoragePoolFriendlyName] <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Resize-SpacesVolume cmdlet extends a storage space and the file system volumes on it. Shrinking the size of a storage space is not allowed, although this cmdlet does not check the input new size. It only works with Microsoft System Reserved (MSR) partitions and a single primary partition.

パラメーター

-NewSize<String>

Specifies the new size of the storage space and volume.

エイリアス

なし

必須?

true

位置は?

2

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-SpaceFriendlyName<String>

Specifies the friendly name of the storage space to resize.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-StoragePoolFriendlyName<String>

Specifies the friendly name of the storage pool.

エイリアス

なし

必須?

false

位置は?

3

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Confirm

コマンドレットを実行する前に、ユーザーに確認を求めます。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-WhatIf

コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

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

入力

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

  • None

出力

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

  • System.Object

    This cmdlet outputs an object that represents the volume that was resized.

Example 1 – Resize a storage space

This example resizes a storage space named 2ndSpace on a storage pool named 2ndPool to 2TB.

PS C:\> Resize-SpacesVolume -SpaceFriendlyName "2ndSpace" -StoragePoolFriendlyName "2ndPool" -NewSize (2TB)