Resize-Partition examples - by _Emin_

Status : 

 


1
0
Sign in
to vote
ID 783798 Comments
Status Active Workarounds
Type Bug Repros 0
Opened 4/16/2013 1:52:59 AM
Access Restriction Public

Description


With:
Get-help Resize-Partition -Examples
We can see that:
Get the partition sizes.
PS C:\> $size = (Get-PartitionSupportedSize -DiskNumber 3 -PartitionNumber 2)

Resize to the maximum size.
PS C:\> Resize-Partition -DiskNumber 3 -PartitionNumber 2 -Size $size.MaximumSize

Get-PartitionSupportedSize has 2 properties:SizeMin and SizeMax
So the last command in the example: should be:
PS C:\> Resize-Partition -DiskNumber 3 -PartitionNumber 2 -Size $size.SizeMax
Sign in to post a comment.