# Cleanup Server WinSxS Free Space on Server 2008 and Server 2012

Share on:

Run the following commands if you are running low on C: drive space. Generally, this is caused by windows updates and you need to clear WinSxS free space. Do this in your PowerShell prompt and you will free up a substantial amount of space.

Please Note: You have to run updates on Windows Server 2008 if you are far behind and these commands don’t exist!

MASTER CLEANUP: (Run this First)

Dism.exe /online /Cleanup-Image /SPSuperseded

FOLLOWUP:

Windows 2008 Use: Dism.exe /online /Cleanup-Image /StartComponentCleanup
Windows 2012 Use: Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase


I live stream on Twitch and encourage you to drop in and ask a question. I regularly publish on YouTube and christitus.com, but if you need immediate assistance, check out our discord channel at Chris Titus Tech Discord.