Safely remove archived updates/hotfixes from Windows Server 2008 & Windows 7

In a event where you are running low on disk space after applying a service pack or a set of updates, there are two unique tools that can be used to safely remove some of the archived information that is set aside by Windows.

The two tools that can be used for Windows Server 2008 are COMPCLN and DISM. COMPCLN is the older utility that's been around since Vista, and it is recommended that you run DISM instead. Either way both commands seem to do the same function. Please note that COMPCLN does not work in Windows 7.

DISM Command

There are many switches when running this command and is recommended that you look into all the options in the Microsoft manual. For the most part the command should look like this:

dism /online /cleanup-image /spsuperseded

Upon completion, you will not be able to remove any service packs that were installed, since they are now permanent in the OS.



Tagged under: windows server, Clean Tool, COMPCLN, DISM