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

Page 2 of 4 FirstFirst 1234 LastLast
  1. dalchina's Avatar
    Posts : 30,097
    Win 10 Pro (1903)
       #11

    That Powershell command - after a minute or so- gave
    How to Reduce the Size of the C:\Windows\WinSxS\ Folder?-1.png

    - which presumably means about 2.08Gb

    (Not used to long numbers like that as I don't have that much in my bank account )
      My Computers


  2. Posts : 35
    Windows 10 Home (1909)
    Thread Starter
       #12

    Ghot said:
    I've used the method that @dalchina linked. In particular, this command...

    Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
    OK,
    Last week I ran this command with /StartComponentCleanup, but without /ResetBase.
    I ran it now again, just in case,
    and then, I ran it with both /StartComponentCleanup and /ResetBase.

    It finished quite fast, and after it finished I checked the free space on C:, and nothing changed, at all.

    I then ran dism with the Analyze command:
    dism.exe /Online /Cleanup-Image /AnalyzeComponentStore

    and the result is this:

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



    As can be seen, Cache and Temporary Data is 0GB,
    but Backups and Disabled Features is 1.57GB..

    So can something be done to get rid of Backups and Disabled Features?

    /ResetBase, which I have just ran, did not clean it..
      My Computer


  3. Posts : 38,435
    windows 10 professional version 1607 build 14393.969 64 bit
       #13

    spaceman5 said:
    OK,
    Last week I ran this command with /StartComponentCleanup, but without /ResetBase.
    I ran it now again, just in case,
    and then, I ran it with both /StartComponentCleanup and /ResetBase.

    It finished quite fast, and after it finished I checked the free space on C:, and nothing changed, at all.

    I then ran dism with the Analyze command:
    dism.exe /Online /Cleanup-Image /AnalyzeComponentStore

    and the result is this:

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



    As can be seen, Cache and Temporary Data is 0GB,
    but Backups and Disabled Features is 1.57GB..

    So can something be done to get rid of Backups and Disabled Features?

    /ResetBase, which I have just ran, did not clean it..


    The size of Windows winsxs had been reduced by the clean up.

    The Cache and Temporary Data was eliminated.

    The current displayed size is related to hard links.

    The real overhead size now is 1.57 GB and not 5.7 GB




    This is from the computer used to type this post:

    Code:
    Microsoft Windows [Version 10.0.17763.1577]
    (c) 2018 Microsoft Corporation. All rights reserved.
    
    C:\WINDOWS\system32>Dism.exe /Online /Cleanup-Image /AnalyzeComponentStore
    
    Deployment Image Servicing and Management tool
    Version: 10.0.17763.1518
    
    Image Version: 10.0.17763.1577
    
    [==========================100.0%==========================]
    
    Component Store (WinSxS) information:
    
    Windows Explorer Reported Size of Component Store : 11.70 GB
    
    Actual Size of Component Store : 11.05 GB
    
        Shared with Windows : 5.85 GB
        Backups and Disabled Features : 3.38 GB
        Cache and Temporary Data : 1.81 GB
    
    Date of Last Cleanup : 2021-03-12 16:51:35
    
    Number of Reclaimable Packages : 1
    Component Store Cleanup Recommended : Yes
    
    The operation completed successfully.
    
    C:\WINDOWS\system32>

    The real overhead size = 3.38 GB + 1.81 GB = 5.19 GB

    Due to hard links Windows Explorer Reported Size of Component Store : 11.70 GB.

    Cache and Temporary Data : 1.81 GB (most can be cleaned up)
      My Computer


  4. Posts : 35
    Windows 10 Home (1909)
    Thread Starter
       #14

    zbook said:
    The size of Windows winsxs had been reduced by the clean up.

    The Cache and Temporary Data was eliminated.
    The current displayed size is related to hard links.
    The real overhead size now is 1.57 GB and not 5.7 GB
    OK then, I would really be happy to get rid of those 1.57GB..
    Can it be done?
      My Computer

  5. Swordfishx86's Avatar
    Posts : 10
    Microsoft Windows 10 21H1 [Version 10.0.19043.899]
       #15

    dalchina said:
    which presumably means about 2.08Gb
    Ja, reasonable.
      My Computer

  6.   My Computer

  7. hdmi's Avatar
    Posts : 402
    10 Home (20H2)
       #17

    Swordfishx86 said:
    You can't use ordinary means to determine the size of the WinSxS-Folder because it contains a ton of hard links to files elsewhere in %windir%:

    https://docs.microsoft.com/en-us/tro...used-by-winsxs


    Windows 10: https://docs.microsoft.com/en-us/win...-winsxs-folder

    To find the real size run in PowerShell:

    cd c:\windows\winsxs
    ls -Recurse -File -force -ErrorAction SilentlyContinue | ? LinkType -ne HardLink | Measure-Object -Property Length -Sum
    The PowerShell command does work, BUT... for anyone who, like me, prefers to keep an eye on the true size of the WinSxS folder on a more regular basis, there's this handy little tool that works multiple times faster:
    https://schinagl.priv.at/nt/ln/ln.html

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

  8. Swordfishx86's Avatar
    Posts : 10
    Microsoft Windows 10 21H1 [Version 10.0.19043.899]
       #18

    hdmi said:
    there's this handy little tool that works multiple times faster:
    ln - command line hardlinks
    Handy versatile tool ��

    [Wow, a forum that doesn't support unicode in 2021 :thumbdown: ]
      My Computer


  9. Posts : 35
    Windows 10 Home (1909)
    Thread Starter
       #19

    So there's nothing more I can do about WinSxS? :/
      My Computer

  10. Swordfishx86's Avatar
    Posts : 10
    Microsoft Windows 10 21H1 [Version 10.0.19043.899]
       #20

    spaceman5 said:
    So there's nothing more I can do about WinSxS? :/
    Have you run

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

    and

    Dism.exe /online /Cleanup-Image /SPSuperseded

    ?

    What is the output of

    dism /online /cleanup-image /analyzecomponentstore

    ?

    What is your goal? Why are you so concerned about the size of the Component Store?
      My Computer


 
Page 2 of 4 FirstFirst 1234 LastLast

  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:14.
Find Us




Windows 10 Forums