Avatar of Doodad Boy
Doodad Boy
Flag for Malaysia asked on

DISM Start component cleanup

im running windows 2008 r2 and winsxs utilizing the whole diskspace, wen google and saw some option via using dism.exe - Dism.exe /online /Cleanup-Image /StartComponentCleanup

But i getting error - The startcomponentcleanup option is not recognized in this context.
How may i enable this option to shrink winsxs folder
PowershellWindows OSWindows Server 2008

Avatar of undefined
Last Comment
Hello There

8/22/2022 - Mon
Hello There

/StartComponentCleanup is available on Windows 8 and later or Windows Server 2012 and later.

You can try to use this instead. It will remove all installed files that got replaced by the latest SP.
dism.exe /online /cleanup-image /spsuperseded
Doodad Boy

ASKER
hi,
i used the option  /spsuperseded, but i getting an output "Service PAck Cleanup cant proceed. No Service pack backup files were found"
Hello There

You can install the Desktop Experience feature and run Disk Cleanup.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Doodad Boy

ASKER
hi, i used diskcleanup, but it showing all 0 size, nothing is there to be deleted
Hello There

It seems to be fine then.

What do you need to accomplish? Free up the C:\ drive? Something else?
Doodad Boy

ASKER
yep, free up c:\drive
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
Hello There

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.