Cleanmgr
Reclaiming Space: How to Clean Up WinSxS on Windows Server 2008 R2

The C:\Windows\WinSxS directory is notorious for growing over time as it stores multiple versions of DLLs and backup files for Windows Updates. On a long-running Server 2008 R2 instance, this folder can easily consume 10GB–20GB of precious SSD or SAN storage.
![pic1[1]](https://i0.wp.com/lazyadminblog.com/wp-content/uploads/2015/05/pic11.png?resize=368%2C473&ssl=1)
Step 1: Install Disk Cleanup (Without a Reboot)
In Server 2008 R2, the Disk Cleanup utility is technically part of the “Desktop Experience” feature. Usually, installing this requires a reboot—something most admins want to avoid.
Instead, you can install the standalone update package (KB2852386) that specifically adds Disk Cleanup functionality:
- For x64 Systems: Download KB2852386 for Windows Server 2008 R2
![pic2[1]](https://i0.wp.com/lazyadminblog.com/wp-content/uploads/2015/05/pic21.png?resize=549%2C383&ssl=1)
Step 2: Launching the Cleanup Wizard
Once the update is installed, you won’t find it in the Start Menu immediately. You can launch it via the command line:
![pic8[1]](https://i0.wp.com/lazyadminblog.com/wp-content/uploads/2015/05/pic81.png?resize=403%2C454&ssl=1)
- Open Run (Win + R).
- Type
cleanmgrand hit Enter. - Select your C: Drive.
![pic9[1]](https://i0.wp.com/lazyadminblog.com/wp-content/uploads/2015/05/pic91.png?resize=308%2C159&ssl=1)
![pic10[1]](https://i0.wp.com/lazyadminblog.com/wp-content/uploads/2015/05/pic101.png?resize=341%2C139&ssl=1)
Step 3: Cleaning System Files (The “WinSxS” Secret)
To actually shrink the WinSxS folder, you must target the Windows Update files.
![3348.diskcleanup3[1]](https://i0.wp.com/lazyadminblog.com/wp-content/uploads/2015/05/3348-diskcleanup31.png?resize=311%2C382&ssl=1)
![pic11[1]](https://i0.wp.com/lazyadminblog.com/wp-content/uploads/2015/05/pic111.png?resize=386%2C469&ssl=1)
- When the wizard opens, click the Clean up system files button (this requires Administrator privileges).
- The tool will scan again. Look for the new option: Windows Update Cleanup.
- Check this box along with any other items you want to remove (Service Pack Backup files, etc.).
- Click OK.
Step 4: Finalizing the Shrink
Unlike standard file deletion, the WinSxS cleanup happens during the next reboot.
- When you restart the server, you will see a message: “Configuring Windows updates, X% complete. Do not turn off your computer.” * Do not interrupt this process. This is the system physically removing the redundant files from the WinSxS directory.
![pic12[1]](https://i0.wp.com/lazyadminblog.com/wp-content/uploads/2015/05/pic121.png?resize=364%2C474&ssl=1)
The Result: After the reboot, you should see a significant drop in the size of your Windows directory—often saving several gigabytes of space.
#WindowsServer #WinSxS #SysAdmin #StorageCleanup #ITPro #DataCenter #WindowsUpdate #TechTips #LazyAdmin #ServerMaintenance