locked
Winsxs folder on Server 2008 R2 RRS feed

  • Question

  • I would like to delete the winsxs folder because it is 10 GB now. The problem is i have done the things mentioned on the Microsoft site concerning installation of desktop intelligent feature and KB2852386 install to clean up the update folder in winsxs. The problem is that the folder is not cleaned after starting cleanup and restarting the folder.

    In the cleanup tool there is the possibility to clean the update backup files and service pack but this is a few MB not 10 GB......

    How can i clean the winsxs else on a server 2008 R2?


    freddie

    Wednesday, June 29, 2016 11:09 AM

Answers

  • Hi,

    Thanks for your post.

    The WinSXS folder contains all Windows system components. In fact, component files elsewhere in Windows are just links to files contained in the WinSXS folder. The WinSXS folder contains every operating system file. When Windows installs updates, it drops the new Windows component in the WinSXS folder and keeps the old component in the WinSXS folder. This means that every Windows Update you install increases the size of your WinSXS folder.

    For example, the following command will uninstall all previous versions of components without the scheduled task’s 30-day grace period:

    DISM.exe /online /Cleanup-Image /StartComponentCleanup

    The following command will remove files needed for uninstallation of service packs. You won’t be able to uninstall any currently installed service packs after running this command:

    DISM.exe /online /Cleanup-Image /SPSuperseded

    The following command will remove all old versions of every component. You won’t be able to uninstall any currently installed service packs or updates after this completes:

    DISM.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase

    You could use this guide to free up space:

    How to Clean up the WinSxS Directory and Free Up Disk Space on Windows Server 2008 R2 with New Update
    http://blogs.technet.com/b/askpfeplat/archive/2014/05/13/how-to-clean-up-the-winsxs-directory-and-free-up-disk-space-on-windows-server-2008-r2-with-new-update.aspx

    Some articles for your reference:

    How to address disk space issues that are caused by a large Windows component store (WinSxS) directory

    https://support.microsoft.com/en-us/kb/2795190

    Best Regards,

    Alvin Wang


    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    • Proposed as answer by Alvwan Monday, July 4, 2016 2:44 AM
    • Marked as answer by RobertPearman Wednesday, July 6, 2016 4:38 PM
    Thursday, June 30, 2016 7:12 AM