Skip to content

VPS: Expand Hard Drive (Partition) on Windows Server

Discover how to safely expand your Windows Server partition to effectively use new storage space → Learn more now

12 November 20265 min read15 Views0 helpful

Introduction

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.

Preparation

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.

Extend a partition

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.

Info

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.

Using Disk Management

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.

Tip

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.

Using diskpart (command line)

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.

Tip

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:

Code
# 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.

Conclusion

You've successfully extended your main partition and are now using all available storage. If you have any questions or need help, our support team is available every day! 🙂

FAQ

Frequently asked questions

Open the Disk Management tool (search for it in the Start menu, or press Windows key + R and enter diskmgmt.msc), right-click the main partition, and select Extend Volume.
Typically, after upgrading your server's storage. The additional storage becomes usable only after you extend the main partition.
On older images, there is usually a recovery partition directly after C:. Windows can only extend a volume into free space immediately next to it. First, create a backup, move the recovery environment to C: with reagentc /disable, remove the partition in diskpart with delete partition override, extend C:, and re-enable WinRE with reagentc /enable. With ZapX Pass, the ZapX AI Agent on your VPS can also guide you through this.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 Users found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.