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 read14 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.
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.
There are two options: the graphical Disk Management tool, which covers most standard tasks, and the diskpart command line, which offers more advanced features.
Yes. The recommended process using the Disk Management tool is safe and does not affect your existing data.
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.
You decide which services we may enable for analytics, personalization, and external content.
Some services process personal data in third countries. By consenting, you also agree to this transfer. You can find more information in our Privacy Policy.
We use cookies and similar technologies on our website to personalize content, embed external media, and better understand how individual areas are used.
Necessary cookies
These entries support essential functions such as security, stability, and form processing.
Optional sections
AnalyticsMarketingPersonalizationExternal media
Your data may be processed with your consent or on the basis of legitimate interests. In the cookie settings, you can reject or explicitly allow each optional category.
Some services process personal data in third countries. By consenting, you also agree to this transfer. You can find more information in our Privacy Policy.
You can reopen and change your selection at any time. · 1.0.3
Navigation
VPS
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! 🙂
Server hosting from €2.49 / month, online instantly, DDoS protection included.
On older Windows Server images, there is a small recovery partition (usually 500 MB to 1 GB) directly after drive C:. The new unallocated space is located beyond it. However, Windows can only extend a volume into free space directly to its right. This means that neither the automatic extension at restart nor the Disk Management or diskpart methods will work in this case.
Here's how to identify this situation:
In Disk Management, Extend Volume is grayed out for C:, even though unallocated space is available.
A partition labeled Recovery partition appears between C: and the unallocated space.
extend in diskpart fails with an error message.
To extend C:, you need to move the recovery partition out of the way. It can only be moved using third-party partitioning software. An easier option is to remove it: first move the Windows Recovery Environment (WinRE) to drive C: so it remains available.
With the ZapX AI Agent
With ZapX Pass, open the ZapX AI Agent tab in your VPS web interface and describe the issue, for example: “I can't extend C: after the upgrade, and there's a recovery partition right after it.” If your VPS system connection is active, the agent will check your disk layout and guide you through the steps below.
Remove it yourself and extend C:
Warning
Before proceeding, create a backup of your VPS in the Backups tab, or check that a recent daily backup is available there. If you accidentally select the wrong partition in diskpart, the data on it will be lost. Only delete the Recovery partition located directly after C:.
Open Command Prompt as an administrator.
Enter reagentc /info. If the status is Enabled, disable WinRE with reagentc /disable. Windows will copy the recovery environment to drive C:.
Start diskpart and display the disks with list disk. Select the disk containing drive C: (usually select disk 0) and display its partitions with list partition.
Find the partition labeled Recovery that appears directly after the large C: partition. Select it with select partition [Partitionsnummer] and use detail partition to confirm that it is the recovery partition.
Remove it with delete partition override. Disk Management does not offer the option to delete this partition, so you can only do this with diskpart.
Select C: (list volume, then select volume [Volumenummer]) and extend it with extend. Exit diskpart with quit.
Re-enable the recovery environment with reagentc /enable and use reagentc /info to check that the status is Enabled again.