Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Disk Cleanup is lazy

19 Mar 2017   #1
RoWin7

Win 7 Ultimate 64-bit
 
 
Disk Cleanup is lazy

I ran the Disk Cleanup for the 1st time because I usually toss junk manually. Recycle Bin, temp files, etc were emptied, but the Windows\winsxs folder is unchanged, still has 13.2 GB of files. These are old update files, aren't they? And i know doing them manually is not recommended.

NVM--I see the same issue 4 threads below.


My System SpecsSystem Spec
.
19 Mar 2017   #2
Barman58

Windows 10 Pro x64 x2 Windows 10 Enterprise x64, Ubuntu
 
 

Tip, do not believe the folder size reported for winsxs - this folder is part of the Windows Virtualisation system for Link libraries - It contains mostly symbolic links to files that are actually stored elsewhere. Due to the way that explorer treats these links, It shows the size of the file linked to rather than the size of the link file in the winsxs folder.

A winsxs folder that shows gigabytes of content will actually contain a few hundred kilobytes of links.

The .dll files linked to are the variations of each one that is modified over time and allows windows applications to find the correct version in one place whilst not filling the disc with multiple copies of the same file ( or versions thereof )

If you look at the folder using a file manager that is unaware of symbolic links then you will see the true size of the folder - you can try a bootable linux file manager as they often do not see symbolic links as they are designed to display - though the same can be said for some older Windows file managers
My System SpecsSystem Spec
19 Mar 2017   #3
Ranger4

Windows 7 Home Premium 64 bit sp1
 
 

RoWin7. Disc Clean up only removes files when the computer shuts down.

The best way to run Disc Clean up it to run it as Administrator, then when it's finished & it has deleted the files, reboot your computer & you will probably see some notation on the screen, before it closes & starts the reboot.
My System SpecsSystem Spec
.

19 Mar 2017   #4
RoWin7

Win 7 Ultimate 64-bit
 
 

Even if they were elsewhere, there were still 72,387 files or file links. Don't know anything about Linux; I'm using Windows Explorer.

Ran as Admin, rebooted, DC did its thing, now there are 68,342 Files in 17,305 Folders.

They date from original OS in2009, the building of this puter in 10/16, and updates during the 2 months since I have it. It's unlikely I'll uninstall any of the oldest updates.

Image - TinyPic - Free Image Hosting, Photo Sharing & Video Hosting

I don't have an amd, BTW, an Intel.
My System SpecsSystem Spec
19 Mar 2017   #5
Callender

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

The only official way to clean WINSXS is via Extended Disk Cleanup > Windows Update Clean

You need to make sure that update KB2852386 is installed to use this. It's the official MS way to clean WINSXS.
Disk Cleanup  is lazy-disk-cleanup-settings.jpg
Disk Cleanup : Extended

If you want to try anything else you'd better have a system image backup that you can restore. You might not notice any problems until next time you try to install Windows Updates and you could end up with a non booting system at that point.

Barman58 already explained pretty much what goes in in WINSXS but you could read this:

WinSxS Folder in Windows 10/8/7 explained

Explorer and other space sniffing apps cannot accurately determine the size of WINSXS. Each utility you run might show different results.


My System SpecsSystem Spec
19 Mar 2017   #6
johnhoh

Win7 pro x64
 
 

to summarize ...

start > run > %SystemRoot%\System32\Cmd.exe /c Cleanmgr /sageset:65535 & Cleanmgr /sagerun:65535 > check all > enter

... and you're done
My System SpecsSystem Spec
20 Mar 2017   #7
RoWin7

Win 7 Ultimate 64-bit
 
 

@Callender--Good article! I thought they were accumulated junk, like the old KB install files in XP. If they're necessary, I have no problem leaving them. This HD is 100 GB, and I have only 45 filled after 21 years of computing.


I've never thought of Windows as a club, more like a low-security prison.
My System SpecsSystem Spec
20 Mar 2017   #8
RoWin7

Win 7 Ultimate 64-bit
 
 

Quote   Quote: Originally Posted by johnhoh View Post
to summarize ...

start > run > %SystemRoot%\System32\Cmd.exe /c Cleanmgr /sageset:65535 & Cleanmgr /sagerun:65535 > check all > enter

... and you're done
Isn't that the same as the Disk Cleanup I've already done?
My System SpecsSystem Spec
20 Mar 2017   #9
johnhoh

Win7 pro x64
 
 

yes just the same, just wanted to simplify it to one line for posterity
My System SpecsSystem Spec
Reply

 Disk Cleanup is lazy




Thread Tools




Similar help and support threads
Thread Forum
To Run Disk Cleanup or Not
So back last year around January to April there was some Microsoft updates that were not "really" good. Now I have not seen or heard or a fix, but the issue was that when you ran Disk Cleanup some Microsoft updates that were dependent on older updates; the older updates got uninstalled which then...
Windows Updates & Activation
Disk Cleanup
I understand what defragment does but Iím not clear about disk cleanup. Can someone please explain? And also, please advise me if this is not the most appropriate discussion for this post.
Performance & Maintenance
Disk Cleanup
Which files can safely be checked for Disk Cleanup? I don't want to delete something that may casue an issue with the system working correctly.
Performance & Maintenance
disk cleanup?
can i check everything when i run Disk Cleanup?
Performance & Maintenance
Disk Cleanup
Suddenly my Disk Cleanup will not start using Disk Cleanup.exe. I now have to go to Start>Run>cleanmgr to get it to start and that won't pin to the Start Menu which is where I want it. Using Windows 7 Home Premium 64bit.
Performance & Maintenance


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 09:09.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App