Home Dashboard Directory Help
Search

Resize-Partition examples by _Emin_


Status: 

Active


1
0
Sign in
to vote
Type: Bug
ID: 783798
Opened: 4/16/2013 1:52:59 AM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

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
Details
Sign in to post a comment.
Sign in to post a workaround.