PowerTip: Use PowerShell 3.0 to Resize Partitions

PowerTip: Use PowerShell 3.0 to Resize Partitions

  • Comments 2
  • Likes

Summary: Use Windows PowerShell 3.0 in Windows Server 2012 or Windows 8 to resize partitions.

Hey, Scripting Guy! Question How can I easily resize partitions in Windows Server 2012 or Windows 8 by using Windows PowerShell 3.0?

Hey, Scripting Guy! Answer Microsoft PFE, Jason Walker, says, “Use the Get-PartitionSupportedSize and the Resize-Partition functions:"

$MaxSize = (Get-PartitionSupportedSize -DriveLetter c).sizeMax

Resize-Partition -DriveLetter c -Size $MaxSize

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Not in Windows 8 Pro.  Is it in Ultimate?  Maybe 8.1?

  • Of course - Run as Administrator elevated