Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have VPS Hosting windows 2012 Server + MSSQL Server 40GB storage. I am running out of space and I don't want to upgrade the hosting to more expensive variant.

I have cleaned logs, temporary files, recycle bin. And it is not enough. I analyzed the space with TreeSize and I cannot find anything more to delete.

Despite of it Windows folder has 23 GB and I believe, there is a lot of ballast like spellcheckers for languages I don't need. Is there something large I can safely remove from default instalation?

share|improve this question
up vote 2 down vote accepted

you can follow the guide attached below to reduce the WinSXS space in Windows 2012 installation.

Read the whole article because it affects the way you install new features/roles in the server. But if your server is already configured you shouldn't have problems.

If you have MSSQL Database backups configured, check that they have the compression enabled:

Deduplication option like Gabrial suggests is another shot, but in my opinion is not the best solution for a system partition.


share|improve this answer
Thank you very much, I will try reduce WinSXS. My user's data are mostly compressed and unique, I don't believe that deduplication can do this job. I have only express edition of MSSQL, so I can't use compression for backup. Anyway backups goes directly to Dropbox and then are removed and archived by another computer. – qub1n Feb 23 '14 at 12:27

Windows Server 2012 has a new feature called Data Deduplication which can be worth to try.

You can install this feature from Powershell as follows:

PS C:\> Import-Module ServerManager

PS C:\> Add-WindowsFeature -name FS-Data-Deduplication

PS C:\> Import-Module Deduplication

How Much Disk Space Can I Expect to Reclaim?

When you install the Data Deduplication role service on a server running Windows Server 2012, DDPEVAL.EXE is also installed in the C:\Windows\System32 folder as an additional command-line tool. DDPEVAL.EXE can be run against any local NTFS volumes or NTFS network shares to estimate the amount of disk space that can potentially be reclaimed by moving that data to a Windows Server 2012 NTFS volume with Data Deduplication enabled.

C:\> DDPEVAL \\server\folder /V /O:logfile.txt

When you find out if the space that can be reclaimed is substantial, you are ready for the next step, running Optimization Jobs:

In Windows Server 2012 Data Deduplication, Optimzation Jobs perform the work of deduplicating data and optimizing a volume. These jobs can be run on-demand (manually) or on a scheduled basis.

You can trigger an optimization job on-demand in Windows PowerShell by using the Start-DedupJob cmdlet. For example:

PS C:\> Start-DedupJob –Volume E: –Type Optimization

You can query the progress of the job on the volume by using the Get-DedupJob cmdlet:

PC C:\> Get-DedupJob

Source: Keith Mayer Blog

share|improve this answer
Thank you for the tip, my data are quite unique, duplicates can be hardly found. I try to reduce WinSXS first and later maybe I will try data-deduplication. – qub1n Feb 23 '14 at 12:30
Note that Deduplication cannot be applied to boot or systems volumes. – Stephen Kennedy Dec 2 '14 at 19:09

Finnaly I have found the answer based on answer of Adrian Perez. It is powershell command from MSDN example.

Get-WindowsFeature | Where-Object -FilterScript { $_.Installed -Eq $FALSE } | Uninstall-WindowsFeature –Remove

It saved me almost 2GB on Windows 2012 server dedicated just for ASP.NET webserver adn SQL Server.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.