none
WinSXS folder during capture RRS feed

  • Question

  • I was just watching my capture process this morning and I got to thinking:

    The WinSXS folder contains all the roll-back data for Windows updates etc.  With no SP2 on the horizon for Windows 7 a LOT of updates get installed during the capture process.

    Does anyone have any information on whether this WinSXS folder gets cleared/cleaned during the Sysprep/Capture process? I cant seem to find any direct information on it.

    These update will never need to be rolled back. Always after a quicker, slimmer image - I would hate to think that my deployment image contained 100's of MB's (or even GB's) of completely unnecessary data.

    Monday, January 13, 2014 1:10 AM

Answers

All replies

  • The WinSXS folder doesn't get cleaned after a sysprep/capture, but you could run a cleanup step in you capture task sequence. You need to install the addon for the disk cleanup wizard: http://support.microsoft.com/kb/2852386/

    With the addon you can run the cleanup as a commandline step in the task sequence.

    Monday, January 13, 2014 6:54 AM
  • Do you know much about the SXS folder?  It reports a large size but I have read on a few obscure forum posts that it could mostly be just hard-links etc. While you can find plenty of info on what it 'logically' contains, there is not much info on how much of that would be physical files or not.

    I might look into running a cleanup step during the capture, at least for a test and see if it really effects the file size.

    From what I have read though the only 'real' size savings is if you installed Win 7 RTM and then installed SP1. Running the cleanup after SP1 results in some decent size savings.

    I'll give it a test tomorrow though, cant hurt.

    Thanks for the response!

    Monday, January 13, 2014 7:27 AM
  • Hi,

    I genuinely advise you not to mess with the WinSXS folder yourself.

    Very recently a Windows update has been released that adds an option to the disk cleanup wizard which deletes Windows Updates from the update cache.

    Check these links:

    http://support.microsoft.com/kb/2852386

    http://windowsitpro.com/windows-7/microsoft-releases-windows-updates-cleanup-utility-add-windows-7-sp1

    http://www.tweakhound.com/2013/10/09/windows-update-cleanup-for-windows-7-and-windows-8/

    http://lifehacker.com/recover-tons-of-wasted-disk-space-with-the-new-windows-1442937625

    Make sure this update is present in your image, then you can embed an CLEANMGR SAGESET which allows you to cleanup these updates automatically, run this step before the sysprep and capture, and all updates and contents that can be deleted will be deleted.

    Good luck!


    If this post is helpful please click "Mark for answer", thanks! Kind regards

    Monday, January 13, 2014 1:06 PM
  • I've been looking into the cleanup utility, it's what triggered me to start thinking about the WinSXS folder in general. I understand that it's not just update information that is contained there and to be honest my image is pretty fast a slim as it is, just always chasing that impossible dream! I'll test out the cleanup util as part of a TS anyway, just to see if it returns any positive results.
    Monday, January 13, 2014 8:19 PM
  • Hi, I agree with you on that one. Always striving the get the best, optimal result.

    If you have any questions regarding cleanmgr, please feel free to ask.

    Cheers!


    If this post is helpful please click "Mark for answer", thanks! Kind regards

    Monday, January 13, 2014 8:20 PM
  • Thanks for the time guys.
    Monday, January 13, 2014 8:25 PM