Resize-SpacesVolume
Resizes storage spaces and file system volumes.
Syntax
Resize-SpacesVolume
[-SpaceFriendlyName] <String>
[-NewSize] <String>
[[-StoragePoolFriendlyName] <String>]
[-Confirm]
[-WhatIf]
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.
Examples
Example 1 - Resize a storage space
PS C:\>Resize-SpacesVolume -SpaceFriendlyName "2ndSpace" -StoragePoolFriendlyName "2ndPool" -NewSize (2TB)
This example resizes a storage space named 2ndSpace on a storage pool named 2ndPool to 2TB.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NewSize
Specifies the new size of the storage space and volume.
Type: | String |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SpaceFriendlyName
Specifies the friendly name of the storage space to resize.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StoragePoolFriendlyName
Specifies the friendly name of the storage pool.
Type: | String |
Position: | 3 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None
Outputs
This cmdlet outputs an object that represents the volume that was resized.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for