Educational ICT Virtualisation Specialist

Twitter LinkedIn E-mail
Precedence Technologies Ltd
Technology House, 36a Union Lane
Cambridge, CB4 1QB, United Kingdom
T: +44 (0)8456 446 800 / +44 (0)1223 359900
F: +44 (0)8456 446 899 / +44 (0)1223 359459
E: enquiries@precedence.co.uk
CleanupWindows

Jump To: Support > KB > Windows > CleanupWindows

Cleaning up drive space (especially Windows folder) if drive C: full

If you have space to install it, Treesize Free is a great tool to work out where your space has gone.

Here's a list of common causes of a huge Windows folder and what to do about them. Other common locations of wasted space can be found beneath.

C:\Windows\winsxs being huge

winsxs stores both current and previous Windows updates, so it cannot be removed. However, as updates are released that supersede previous ones, this folder will get bigger. If you don't mind not being able to remove installed updates, you can use Disk Cleanup to tidy this up. If you have a Server OS, this is part of the Desktop Experience feature (and if your disk is already full, you don't want to try installing this!). However, you can copy it from another server with this feature installed. The files you want to copy are:

  • C:\Windows\system32\cleanmgr.exe
  • C:\Windows\system32\en-US\cleanmgr.exe.mui

You may also need to install the hotfix which adds the Windows Update Cleanup option:

Screenshots of Server 2008R2:

On Windows 7 you'll need to click the Clean up system files button to relaunch Disk Cleanup in system cleanup mode:

On Server 2012R2 and Windows 8.1, you need to use the dism command:
dism /online /Cleanup-Image /StartComponentCleanup

C:\Windows\SoftwareDistribution

This folder stores files for Windows update to use and also your Windows Update History files. Generally, it should not need to be touched, but if Windows Updates stops working or you are just desperate for the space you can do the following:

  1. Go to a command prompt
  2. Run net stop wuauserv
  3. Run net stop bits
  4. Delete C:\Windows\SoftwareDistribution
  5. Run net start bits
  6. Run net stop wuauserv
  7. Re-run Windows Update (will show that updates have never been run and take longer to scan)

C:\Windows\Installer (hidden system folder)

The Installer folder contains MSI and MSP files that are connected to software currently installed on your computer and these must not be removed. However, it is possible for orphaned files to be left behind from software that has been uninstalled. Figuring out which files are safe to remove is best left to a program. We recommend PatchCleaner. Screenshot:

C:\Windows\Logs\CBS

If the log files in C:\Windows\Logs\CBS grow too large, they will not get cleaned up. To fix:

  1. Open Services control panel
  2. Stop Windows Module Installer service
  3. Delete all files in C:\Windows\Logs\CBS
  4. Delete all files beginning with @cab_ in C:\Windows\Temp@@
  5. Reboot

IIS logs

C:\inetpub\logs\LogFiles\W3SVC1 can easily fill with lots of log files (this is seen especially with heavily web-driven services such as Citrix StoreFront). It is not uncommon for daily log files to be 20-30MB and these are not cleaned up. It is safe to delete the log files from this folder:

References

© Copyright Precedence Technologies 1999-2017
Page last modified on August 08, 2017, at 11:24 AM by sborrill