Disks and partitions in Windows Server
How to view used space, extend the system partition after moving to a higher tier, and free up gigabytes when the disk is almost full.
Updated August 23, 2026
On a VDS there is only one disk: 40 GB on VDS-1 and up to 250 GB on VDS-6. Windows Server alone takes about 15 GB, so on the lower tiers you have to watch free space from day one.
How much is used
Get-Volume | Select-Object DriveLetter, FileSystemLabel, @{n='Free,GB';e={[math]::Round($_.SizeRemaining/1GB,1)}}, @{n='Size,GB';e={[math]::Round($_.Size/1GB,1)}}
Get-Disk
Get-Partition
What is taking up space is fastest to see graphically (WinDirStat, TreeSize Free), but you can also use a command:
Get-ChildItem C:\ -Directory | ForEach-Object {
[pscustomobject]@{ Path=$_.FullName
GB=[math]::Round((Get-ChildItem $_ -Recurse -File -EA SilentlyContinue | Measure-Object Length -Sum).Sum/1GB,2) }
} | Sort-Object GB -Descending | Select-Object -First 10
Used space is also visible in the panel at /hosting/vds/m/<id>: the ring on the “Overview” tab fills up according to data from the guest agent. If the agent has been removed, the ring is empty — the panel will show the installation command.
Extend the partition after moving to a higher tier
When you upgrade your plan, the disk gets bigger, but Windows does not pick up the increase automatically: unallocated space appears at the end of the disk. Extend the partition manually.
$size = (Get-PartitionSupportedSize -DriveLetter C)
Resize-Partition -DriveLetter C -Size $size.SizeMax
Through the interface: “Disk Management” (diskmgmt.msc) → right-click the C partition → “Extend Volume”. If the option is inactive, either the unallocated area is not adjacent to the partition or the machine has not been rebooted since the plan change — run Update-HostStorageCache and rescan the disk.
You cannot shrink the disk: plan downgrades are not available precisely for this reason.
Free up space
Cleanmgr /verylowdisk
dism /online /cleanup-image /startcomponentcleanup /resetbase
Remove-Item C:\Windows\SoftwareDistribution\Download\* -Recurse -Force
Remove-Item $env:TEMP\* -Recurse -Force -EA SilentlyContinue
The big consumers people forget about:
- The page file
C:\pagefile.sys— by default it equals the amount of RAM. On VDS-3 that is 8 GB. Limit it via “System Properties” → “Advanced” → “Performance” → “Virtual memory”. - The hibernation file
hiberfil.sys— a server does not need it:powercfg -h offfrees up several gigabytes. - Restore points and shadow copies —
vssadmin list shadowstorage, limit the size withvssadmin resize shadowstorage. - IIS logs in
C:\inetpub\logs— they grow unnoticed, see IIS. - MS SQL database backups in the default directory.
Common mistakes
- Waiting until space runs out completely. With zero free space Windows stops working properly and sometimes fails to boot. Keep a 15% margin.
- Deleting
C:\Windows\WinSxSmanually. This breaks the system. You can only clean the component store withdism. - Disabling the page file to save gigabytes. On the lower tiers this causes applications to crash during spikes.
- Keeping backups on the same machine. A copy on the same disk saves you neither from running out of space nor from data loss. Upload it elsewhere.
We do not provide automatic machine backups, and there are no state snapshots in the panel either, so your entire recovery plan is your own copies. Set them up before you need them.