How to Reduce the Size of the C:\Windows\WinSxS\ Folder?

Page 3 of 4 FirstFirst 1234 LastLast

  1. Posts : 78
    Windows 10 Home (22H2)
    Thread Starter
       #21

    Hi Swordfishx86


    Swordfishx86 said:
    What is your goal? Why are you so concerned about the size of the Component Store?
    I was my C: drive to be small, so when I create a System Image of it, it wil also be small.
    That's why I prefer to get rid of anything that Windows can live well without.


    Swordfishx86 said:
    Have you run
    Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
    and
    Dism.exe /online /Cleanup-Image /SPSuperseded
    ?
    /ResetBase: yes
    /SPSuperseded: No, since I did not have any SP installed..
    Just in case, I did run it now, and:
    How to Reduce the Size of the C:\Windows\WinSxS\ Folder?-spsuperseded.png


    Swordfishx86 said:
    What is the output of
    dism /online /cleanup-image /analyzecomponentstore
    ?
    Same as before:
    How to Reduce the Size of the C:\Windows\WinSxS\ Folder?-analyze.png
      My Computer


  2. Posts : 11
    Microsoft Windows 10 21H1 [Version 10.0.19043.899]
       #22

    spaceman5 said:
    That's why I prefer to get rid of anything that Windows can live well without.
    Well with 1.7 GB you certainly reached that point.

    PS: you should probably stop posting text as pictures. post text when it's text.
      My Computer


  3. Posts : 78
    Windows 10 Home (22H2)
    Thread Starter
       #23

    Swordfishx86 said:
    Well with 1.7 GB you certainly reached that point.



    Swordfishx86 said:
    PS: you should probably stop posting text as pictures. post text when it's text.
    Why? What's so bad with a screenshot?
    Sometimes when you copy and paste text to a forum, If the Width of the Target is different than the Width of the source,
    then lines tend to break, and it looks bad and much less readable..
    With a screnshot this can't happen..
      My Computer


  4. Posts : 11
    Microsoft Windows 10 21H1 [Version 10.0.19043.899]
       #24

    Text is searchable, pictures are not.
    Text is lean, pictures are bloat.
    If you're concerned with layout put it in Code-Tags ([c]text[/c]).
      My Computer


  5. Posts : 1,201
    11 Home
       #25

    spaceman5 said:
    I was my C: drive to be small, so when I create a System Image of it, it wil also be small.
    That's why I prefer to get rid of anything that Windows can live well without.
    Most folks on here use Macrium Reflect (free), but I much prefer the AcronisBootablePEMedia.iso of Acronis True Image because the latter lets me specify which files and/or folders I want to be excluded from the image that I want to create. Granted, Macrium also gives you that option. However, with Macrium, this can only be achieved through editing the Windows registry so it is tedious, and, also with Macrium, it can only be achieved if you choose to create a live Windows image (live = while Windows is actively running on the system). Live image creation is not necessarily always without problems. For one, Macrium uses the VSS, which requires the System Reserved partition to be kept present, just like the annoying Bitlocker feature of Windows also requires this same partition. Whereas the aforementioned bootable ISO from Acronis still works, regardless of whether this partition was eliminated for the fact that it, too, can be described as bloat. (Even, if it depends on your own personal definition of the word 'bloat'.)

    That being said, if speed is your only goal, then, if you haven't already, you might want to read up on how it also is possible for the DISM command in the WinRE environment to be used to create FFU images. (Personally, I, don't use the FFU because booting into Acronis lets me specify exclusions like I previously explained, and also because it adds on flexibility by giving the option to trade some speed for the benefit of choosing to use data compression.) Also note that it is possible for the WinRE partition to be eliminated, and that it is possible to create a separate WinRE bootable ISO─which you can then boot straight into after you put it on the same USB flash drive that you also use for ALL of your other bootable ISOs by using Ventoy. Ventoy also makes it possible to store personal data on this same USB flash drive so, for example, various portable apps, tools and utilities can be kept outside the ISO file, which can help to save more valuable time as it eliminates the need to rebuild the ISO each time after such an app receives another version update yet again.

    On a side note, I keep hearing various many complaints from people who have experienced troubles after they had installed Acronis True Image, but you don't have to choose to actually INSTALL the thing, when the whole purpose of the discussion was to avoid unnecessary installs anyway in the first place. Just stick to the bootable ISO of Acronis, lean back, and relax. Not too long ago, in another thread there was this person who was worrying over the fact that Acronis likes to shuffle Windows partitions around. The best possible medicine against that kind of complaint, is to just go ahead and throw both the System Reserved partition and the WinRE partition off of the storage device altogether. That is, from a real technical point of view.
      My Computers


  6. Posts : 78
    Windows 10 Home (22H2)
    Thread Starter
       #26

    hdmi said:
    Most folks on here use Macrium Reflect (free), but I much prefer the AcronisBootablePEMedia.iso of Acronis True Image
    Do Acronis let you download that ISO from them,
    or you need to download the installer of the program, install the program, and only then generate the ISO?


    Regarding Ventoy:
    Ventoy is an open source tool to create bootable USB drive for ISO/WIM/IMG/VHD(x)/EFI files.
    With ventoy, you don't need to format the disk over and over, you just need to copy the ISO/WIM/IMG/VHD(x)/EFI files to the USB drive and boot them directly.
    Wow, sounds amazing.. definitely different from the well known approach..
    Thank you for this recommendation.. I will download it.


    hdmi said:
    Not too long ago, in another thread there was this person who was worrying over the fact that Acronis likes to shuffle Windows partitions around. The best possible medicine against that kind of complaint, is to just go ahead and throw both the System Reserved partition and the WinRE partition off of the storage device altogether. That is, from a real technical point of view.
    Of course.
    Getting rid of the unneeded partitions was one of the first things I did when got this laptop.
    But in C:\Recovery\Customizations\ I still got a 3.61GB file, called USMT.ppkg..

    How to Reduce the Size of the C:\Windows\WinSxS\ Folder?-usmt-file.png


    I would really like to get rid of that file, if possible.
    WinRE is already disabled, as indicated by reagentc /info.
      My Computer


  7. Posts : 1,201
    11 Home
       #27

    The AcronisBootablePEMedia.iso file can be created by choosing the Rescue Media Builder menu option from the Tools menu of True Image 2021:
    Acronis True Image 2021: how to create bootable media | Knowledge Base
    Alternatively, it can also be created by using the Acronis Universal Restore Boot Media Builder, the installation package of which can be downloaded from here:
    http://dl2.acronis.com/u/AcronisTrue...1_ur_en-US.msi
    I suppose you will need a licensed copy of True Image 2021 for that to work, as these two Media Builder options let you create a WinRE/WinPE based ISO that is going to be your best option. Even so, there also exists a Linux based version of the bootable ISO, which does work without having a license, and that can be downloaded from here:
    http://download.acronis.com/AcronisTrueImage2021.iso
    ...or here:
    http://dl.acronis.com/s/AcronisTrueImage2021_39184.iso
    With the Linux based bootable ISO if the UI freezes soon after you click on a menu item, then unplugging the ethernet cable before you boot into this ISO can help to fix this.

    C:\Recovery\Customizations\USMT.ppkg is created by the ScanState command that is used with the User State Migration Tool (USMT) that is part of the Windows Assessment and Deployment Kit (ADK).
    Here's the short version of what it means:
    https://answers.microsoft.com/en-us/...5-62c753b8a085
    Long version, see the second to last row in the table shown here:
    https://docs.microsoft.com/en-us/win...customizations
    ...and then go here:
    https://docs.microsoft.com/en-us/win...anstate-syntax
      My Computers


  8. Posts : 31,863
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #28

    spaceman5 said:
    ... in C:\Recovery\Customizations\ I still got a 3.61GB file, called USMT.ppkg..
    ...I would really like to get rid of that file, if possible.
    That is an OEM provisioning package, required (along with C:\Recovery\OEM) for installing the OEM utilities, drivers and customisations should you ever Reset your PC. Make a backup copy of the Customisations and OEM folders, then you should be free to just delete them. You can always copy them back if you ever need to do a Factory Reset.

    Only the ReAgentOld.xml file is a required part of Windows as supplied by Microsoft. A clean install of W10 won't have those other files and folders in C:\Recovery, anything else is part of an OEM install of Windows. None of my machines have anything else in C:\Recovery...

    How to Reduce the Size of the C:\Windows\WinSxS\ Folder?-image.png

    In fact, you can become your own 'OEM' and make your own provisioning package if you like. Or just read this to find out more about provisioning packages.

    Windows 10 incorporates a new technology called Provisioning Packages, and this tutorial uses tool called scanstate, which is part of the free Windows Assessment and Deployment Kit (ADK) to capture currently-installed software into one of these packages.
    Create Provisioning Package in Windows 10


    WinRE is already disabled, as indicated by reagentc /info.

    Actually you're shooting yourself in the foot here to the tune of about half a gigabyte. The Windows recovery environment is held in a single 0.5GB file named WinRE.wim. There is only ever one copy of this file kept on your system. When you enable WinRE it is moved to your recovery partition, with it disabled it's moved back to your C: drive. You could remove 0.5GB from your C: drive by enabling WinRE.

    Side note: a common mistake is to delete your recovery partition (which some recommend as a way to gain more usable disk space) while recovery is enabled. You'll delete your only copy of WinRE.wim and never be able to enable it again. To delete the recovery partition safely, disable WinRE first.

    How to Reduce the Size of the C:\Windows\WinSxS\ Folder?-winre-files-disabled.png

    How to Reduce the Size of the C:\Windows\WinSxS\ Folder?-winre-files-enabled.png

    In case it hasn't been mentioned yet, it is completely safe to delete any CU packages you may have in C:\Windows\Servicing\LCU. These are just backup copies of the latest cumulative updates, copied there when they were installed. By default the three latest are retained. 'Disk Cleanup - clean up system files' deletes all but the most recent one, but it's safe to delete that one yourself.
    Last edited by Bree; 28 Mar 2021 at 17:03.
      My Computers


  9. Posts : 1,201
    11 Home
       #29

    So here's how to get back the WinRE.wim file after you held the wrong belief that you would never be able to get it back.

    First, start by grabbing the Windows 10 Installation ISO that correctly matches each of the various parameters that make the distinction of what Windows 10 you have installed (edition, version, bitness, and language), like so:
    Download Windows 10 ISO File
    Next, just follow these simple steps:
    How to Extract Files from Windows 10 ISO or DVD (Install.wim) - Winhelponline
    All set and done. Next question, please.

    - - - Updated - - -

    As for creating your own custom provisioning package, if you really want to go that far, then you might also be interested in this stuff:
    Factory recovery - Create a Custom Recovery Partition
    The main takeaway for anyone who just wants to debloat? You don't actually even need the WinRE in any way at all, as you can just boot into the Windows 10 Installation ISO with Ventoy, after which you will be able to do everything that's possible with the WinRE, plus more─lots more.
      My Computers


  10. Posts : 31,863
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #30

    hdmi said:
    So here's how to get back the WinRE.wim file after you held the wrong belief that you would never be able to get it back....
    Yes, it can be done, and I've explained how to do that before. But someone with the knowledge/skills to do that should already know to disable recovery before deleting their recovery partition
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:03.
Find Us




Windows 10 Forums