PowerShell, Windows

How To: Resize Disk Partition with PowerShell

If you need to expand a disk partition on a Windows system (which has PowerShell) then you can quickly and efficiently do so with the following commands further down.

Step 1 – Use Get-Volume to identify the disk(s) which you want expanding:

Step 2 – Use Get-PartitionSupportedSize -DriveLetter C to check if and to what size it can be expanded:

Step 3 – Here we store to $size variable the output from the command in Step 2 and then we resize the partition to its maximum size:

Step 4 – Result

twitterredditpinterestlinkedinmail

Leave a Comment

Your email address will not be published. Required fields are marked *