Thursday, October 24, 2019

How to Cleanup the WinSXS (Windows Update Folder)

1. Open Command prompt as an administrator

2. run the following commands in command prompt or powershell.

3. Run the analyzer: dism.exe /online /Cleanup-Image /AnalyzeComponentStore

4. Enter the command: Dism.exe /online /Cleanup-Image /StartComponentCleanup

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

If you need to manually clean that sucker up. Then go to the following folder and delete all files older than 1 year.

C:\windows\WinSXS

Caution: Be careful not to delete the "Backup" Folder: C:\windows\WinSXS\Backup

Absolute Kill Option. Seriously. Be careful if it's running a critical application. This is a RGE (Resume Generating Event)

6. Stop all running services

7. Remove-Item -path c:\Windows\WinSXS\* -Force

If you didn't kill the server. Rejoice. If you did (and your on VMware), roll back the snapshot
Share: