News for hackers. Stuff that matters.
Re:De-Bloated Windows 11 Build Runs on 2GB of RAM by kristianp on Sunday February 05, 2023 @12:03AM (#34662084)
Hmm, so how can you see the real size of winsxs?
Re:De-Bloated Windows 11 Build Runs on 2GB of RAM by binarycrusader on Sunday February 05, 2023 @12:23AM (#34662195)
Brute force?

Get the size of every “file” in the volume along with the file id of each and then subtract the size of any files with a matching file id that are in the WinSxS. Then sum the size of the remaining files that were from the WinSxS.

You can get the file id using https://learn.microsoft.com/en-us/windows/win32/api/winbase/... or fsutil, etc.

You could also probably execute “fsutil hardlink list” for every “file” in WinSxS and then ignore any that list more than one result and sum the size of the remainder.

There are of course more efficient ways to do this but those are some quick hacks.

Re:De-Bloated Windows 11 Build Runs on 2GB of RAM by forgotpwd16 on Sunday February 05, 2023 @04:27AM (#34663322)

  dism.exe /Online /Cleanup-Image /AnalyzeComponentStore
Gives both apparent (seen in Explorer) and actual size.