Export (0) Print
Expand All

Resize-SpacesVolume

Published: February 6, 2013

Updated: February 6, 2013

Applies To: Windows 8, Windows Server 2012

Resize-SpacesVolume

Resizes storage spaces and file system volumes.

Syntax

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




Detailed Description

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.

Parameters

-NewSize<String>

Specifies the new size of the storage space and volume.


Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-SpaceFriendlyName<String>

Specifies the friendly name of the storage space to resize.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-StoragePoolFriendlyName<String>

Specifies the friendly name of the storage pool.


Aliases

none

Required?

false

Position?

3

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters.

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • None

Outputs

The output type is the type of the objects that the cmdlet emits.

  • System.Object

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


Notes

  • The StorageSpaces module is a downloadable module available for use with Windows Server 2012 and Windows 8. You can download the module from the Script Center.

Examples

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)

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft