Remove Winsxs from image without ntlite

Discussion in 'Windows 11' started by ibay770, May 10, 2023.

  1. ibay770

    ibay770 MDL Member

    Oct 9, 2015
    174
    45
    10
    I'm trying to slim down win11. I know the paid version of ntlite slims down the Winsxs folder, but I'm.not sure how it does it, as I only have the free version.
     
  2. Errepublika

    Errepublika MDL Senior Member

    Aug 18, 2021
    453
    317
    10
    You can do it once installed from the terminal as administrator, which is actually PowerShell 7.3.4 depending on which version you have, this is the latest:
    Clean WinSxS

    Dism.exe /online /Cleanup-Image /StartComponentCleanup
    Code:
    PowerShell 7.3.4
    PS C:\Users\xxx> Dism.exe /online /Cleanup-Image /StartComponentCleanup
    
    system restore
    Dism /Online /Cleanup-Image /RestoreHealth
    Code:
    PowerShell 7.3.4
    PS C:\Users\XXX> Dism /Online /Cleanup-Image /RestoreHealth
    
    To check that the system is ok or have to repair something
    SFC /Scannow
    Code:
    PowerShell 7.3.4
    PS C:\Users\XXX> SFC /Scannow