Expanding the C: Drive on Windows Server ​
When deploying a Windows Server, it may happen that the entire available storage space is not automatically assigned to the C:
partition. This guide describes how you can automatically add the unallocated space to your C:
drive using a provided script.
Requirements ​
- A Windows Server where the script will be executed.
- Administrator rights on the server.
Steps ​
Download the script
- Download the following script directly to your Windows Server:
https://cdn.emeraldhost.de/products/rootserver/windows-patch/extend-disk/remove_recovery_and_extend.bat
https://cdn.emeraldhost.de/products/rootserver/windows-patch/extend-disk/remove_recovery_and_extend.bat
- Download the following script directly to your Windows Server:
Run the script as administrator
- Navigate to the location of the downloaded file.
- Right-click on the file
remove_recovery_and_extend.bat
. - Select Run as administrator.
Automatic expansion of the
C:
drive- After running the script, the unused space will be automatically added to the
C:
partition without any manual intervention.
- After running the script, the unused space will be automatically added to the
Troubleshooting
- If the script does not run correctly or the partition expansion fails:
- Ensure you have administrator rights.
- Restart the server after running the script and check the disk space again.
- If problems persist, feel free to contact our Support.
- If the script does not run correctly or the partition expansion fails: