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
运行 cmdlet 之前提示你进行确认。
是否为必需? |
false |
位置? |
named |
默认值 |
false |
是否接受管道输入? |
false |
是否接受通配符? |
false |
-WhatIf
显示如果运行 cmdlet 则会发生什么情况。cmdlet 未运行。
是否为必需? |
false |
位置? |
named |
默认值 |
false |
是否接受管道输入? |
false |
是否接受通配符? |
false |
<CommonParameters>
此 cmdlet 支持通用参数:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 和 -OutVariable。有关详细信息,请参阅 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
输入
输入类型是指可通过管道传送给 cmdlet 的对象的类型。
- None
输出
输出类型是 cmdlet 所发出对象的类型。
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)