var img = document.createElement('img'); img.src = "https://easystat.de/piwik.php?idsite=13&rec=1&url=https://docs.servinga.cloud" + location.pathname; img.style = "border:0"; img.alt = "tracker"; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(img,s);
Skip to main content

How to grow your Windows partition

If you have a disk that has more capacity as shown, this guide will show you how to resize the partition using either PowerShell or the graphical user interface (GUI).

Disk resizing with GUI

To resize using the graphical user interface (GUI), open the search bar and open Disk Management.

info

You can easily identify which disk isn't using its full capacity by looking for an unallocated partition next to it. 1

To resize the disk, right-click on the partition next to the unallocated partition and select Extend. 2

A new window, the "Extend Volume Wizard," will open. In the first step, simply click "Next." 3

Then select the unallocated space you want to add to the partition (it was preselected by default in my case). After selecting the disk, click Next. 4

For the final step, simply click "Finish," and you're all set! 5

Disk resizing with PowerShell

The code below first lists all partitions on Disk 0 and identifies the number of the last partition, then it determines the maximum supported size for that partition and finally it expands the last partition to its maximum capacity.

$LastPartition = Get-Partition -DiskNumber 0 | Select-Object -Last 1
$Size = Get-PartitionSupportedSize -DiskNumber 0 -PartitionNumber $LastPartition.PartitionNumber
Resize-Partition -DiskNumber 0 -PartitionNumber $LastPartition.PartitionNumber -Size $Size.SizeMax