Cleaning WinSxS- doesn't work

4

I've tried the cmd command and Windows cleaner with elevated privileges, but neither has cleaned the WinSxS folder. It says that the task has been completed in the CMD, but WinSxS is still 14 GB. I'm using Windows 7 Home Premium x64.

Jack

Posted 2013-09-20T17:45:04.530

Reputation: 349

Question was closed 2013-12-20T14:40:01.017

What does du report it's space as used? Also check your entire Windows directory with du otherwise you will be double counting files.

– Scott Chamberlain – 2013-09-20T18:31:16.110

1

possible duplicate of 16GB winsxs folder on windows vista. Also check Can winsxs be moved and if so how? for more information.

– Doktoro Reichard – 2013-09-20T18:31:48.237

Answers

1

The only way to cleanup the WinSxS folder is to check all installed Updates and look which updates are replaced by newer updates and remove those old updates. In Windows 8 Microsoft added an automatic cleanup which does the check for you and removes the updates.

magicandre1981

Posted 2013-09-20T17:45:04.530

Reputation: 86 560

2

You can get a hotfix for Windows 7 SP1 now that fixes this as well: http://support.microsoft.com/kb/2852386

– Mark Henderson – 2013-10-09T00:53:19.320

@MarkHenderson thanks for pointing to the KB article. I'll try it later and look if it works the same way like Windows 8. – magicandre1981 – 2013-10-09T04:03:30.483

the update has some limitations and bugs and removes updates which are not replaced by newer ones. So it is better to wait for a newer version of the fix. – magicandre1981 – 2013-10-09T18:02:14.187

3

Windows 7's KB 2852386 update, "Update is available that enables you to delete outdated Windows updates by using a new option in the Disk Cleanup wizard in Windows 7 SP1", now allows Disk Cleanup to clean up the WinSxS folder. From KB 2852386's Knowledge Article page:

This article describes an update for the Disk Cleanup wizard in Windows 7 Service Pack 1 (SP1).

This update adds a new plugin to the Disk Cleanup wizard. After you install this update, you can use the Windows Update Cleanup option to delete Windows updates that you no longer need.

Notes

  • The Windows Update Cleanup option is available only when the Disk Cleanup wizard detects Windows updates that you do not need on the computer.
  • To enable you to roll back to previous updates, updates are stored in the WinSxS store even after they are superseded by later updates. Therefore, after you run the Disk Cleanup wizard, you may be unable to roll back to a superseded update. If you want to roll back to a superseded update that the Disk Cleanup wizard deletes, you can manually install the update.

More info at KB 2852386's Knowledge Article page

galacticninja

Posted 2013-09-20T17:45:04.530

Reputation: 5 348

This does not work. Why does MS make such a simple thing hard to do. – user55570 – 2017-10-07T06:34:22.767

2

The cleaning command only cleans the files used by Windows Update on upgrading to Windows SP1 (see this for more information). At any rate, the difference in size before and after is relative for most users, but it ranges about the 1GB mark.

There are good reasons not to wipe the wiwsxs folder completely. Quoting from Wikipedia:

From Vista onward the operating system also uses WinSxS for its core components.

Doktoro Reichard

Posted 2013-09-20T17:45:04.530

Reputation: 4 896

I disagree. Those are not good reasons. Bloated OS adding more bloat. And MS making it hard to opt out for those that want different. – user55570 – 2017-10-07T06:36:08.707