For quite a while I had been curious as to why a simple method to do this was not available. CCLEANER and others do not do everything needed. Well, the following .VBS originated with the excellent David Barrett ( http://www.cedit.biz ) and has been rewritten a lot by yours truly (JEB of Ponderworthy). One thing discovered along the way, is even in XP there is a user profile called the “System Profile” — XP has it in
C:\WINDOWS\System32\config\systemprofile — and malware often dumps junk into it, and sometimes many gigs of unwanted files can be found in its temporary storage. The below cleans all user profiles including those, as well as the Windows Error Reporting cache, and the .NET caches, and the system TEMP folders, and in recent versions, many Windows log files which are often found in many thousands of fragments on drives.
The tool is designed for Windows 10 down through XP. If you’re running this tool on Vista/2008 or above, do use an administrative CMD or equivalent, or most of the deletions won’t happen.
The full text can be downloaded here in a zip file.
Very useful procedure, does not need a role/feature install. Slightly different on each. Note the locale suffix which will have to be changed. Does not work on 2012R2, from that point we have to enable the desktop experience, which can be done in Powershell using
copy C:\Windows\WinSxS\amd64_microsoft-windows-cleanmgr_31bf3856ad364e35_6.2.9200.16384_none_c60dddc5e750072a\cleanmgr.exe %systemroot%\System32
copy C:\Windows\WinSxS\amd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.2.9200.16384_en-us_b6a01752226afbb3\cleanmgr.exe.mui %systemroot%\System32\en-US
copy C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr_31bf3856ad364e35_6.1.7600.16385_none_c9392808773cd7da\cleanmgr.exe %systemroot%\System32
copy C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.1.7600.16385_en-us_b9cb6194b257cc63\cleanmgr.exe.mui %systemroot%\System32\en-US
Server 2008 64-bit:
copy C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr_31bf3856ad364e35_6.0.6001.18000_none_c962d1e515e94269\cleanmgr.exe %systemroot%\System32
copy C:\Windows\winsxs\amd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.0.6001.18000_en-us_b9f50b71510436f2\cleanmgr.exe.mui %systemroot%\System32\en-US
Server 2008 32-bit:
copy C:\Windows\winsxs\x86_microsoft-windows-cleanmgr_31bf3856ad364e35_6.0.6001.18000_none_6d4436615d8bd133\cleanmgr.exe %systemroot%\System32
copy C:\Windows\winsxs\x86_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.0.6001.18000_en-us_5dd66fed98a6c5bc\cleanmgr.exe.mui %systemroot%\System32\en-US
One good standby lately is the Microsoft Malicious Software Remover:
For major infections, another is Comodo Cleaning Essentials, courtesy of the amazing Jared Dexter:
After that, Malwarebytes:
For garbageware, irritationware, and similar things, I like the following, only rarely needing the whole series:
“Bleachbit” works very well.
Very worthwhile. Sometimes has been seen to take 8+ hours of background processing to complete its work.
Something new, comes highly recommended, have not tested it myself yet:
- Change the Port, to “FILE:”, and then try to delete it again. If that doesn’t work:
- Go to this registry location:
and delete the ones that you want gone. Then restart the Windows service named ‘spooler’.