Windows OS includes built-in disk and partition management tools that let you perform a wide range of tasks, including extending partitions, splitting disks, and more. Extending partitions is particularly important after upgrading your Windows Server storage. In this guide, we'll show you how to extend a partition on your Windows Server.
First, connect to your Windows Server via RDP. If you need help, see our First Access (RDP) guide.
There are two ways to manage disks and partitions: the Disk Management tool with its GUI, and the diskpart command line. The Disk Management tool is a graphical interface for Diskpart and covers most standard tasks, including extending partitions. For advanced users, diskpart is the more powerful and comprehensive option.
There are several situations where you may need to extend an existing partition to use additional storage. A common example is upgrading your server's storage, which is only allocated by default after you extend the main partition.
After a storage upgrade in the Manage plan tab, on current Windows images the panel automatically extends drive C: by the additional storage at the next restart. You only need the steps below if C: is not larger afterward.
We recommend using the Disk Management tool, as it is much easier, especially for beginners. The process is safe and does not affect your data.
If you can't extend C: even though unallocated space is available, there is usually a recovery partition directly after C:. See the Recovery partition directly after C: section below for how to fix this.
First, open the Disk Management tool. Simply search for it in the Start menu, or open Run with Windows key + R, enter diskmgmt.msc, and confirm.
In the tool, right-click the main partition and select Extend Volume to open the wizard.
The main drive is always the C: drive.
In the wizard, click Next to go to a page where you can choose how much storage to add. By default, Windows automatically uses all unallocated space, which is ideal.
You can click Next and then Finish to complete the process.
Once complete, Disk Management will show the new configuration with the updated disk size.
First, open Command Prompt as an administrator. Search for it in the Windows Start menu, right-click it, and select Run as administrator.
Enter the diskpart command to start the CLI tool. Once it has loaded, enter list disk to display all currently connected disks.
Then, use select disk [Festplattennummer] to select the disk you want to extend. Replace [Festplattennummer] with the number shown in the list.
The main drive is always the C: drive.
With the disk selected, enter list volume to display all volumes on that disk. Find the volume you want to extend and select it with select volume [Volumenummer]. Replace [Volumenummer] with the corresponding number.
With the disk and volume selected, you can now extend the volume. You can either use all unallocated space or specify a particular size:
# Erweiterung auf gesamten nicht zugewiesenen Speicherplatz
extend
# Erweiterung auf eine bestimmte Größe (10240 = 10240MB = 10GB)
extend size=10240
If the process succeeds, the updated volume size will appear when you display the volumes again and in File Explorer. Enter quit to exit.