Advanced Computer Cleanup Methods

1. Advanced Disk Cleanup

The common disk cleanup method that is done by the computer's own disk cleanup module (namely cleanmgr.exe ) is simply not enough but Windows has a secret but advanced disk cleanup module that not so many has ever heard of.

To use this, open an elevated command prompt, paste this text:

%SystemRoot%\System32\Cmd.exe /c Cleanmgr /sageset:65535 & Cleanmgr /sagerun:65535

and hit ENTER. Just scroll and you will see many rather odd categories it can clean.

I am not sure whether CCleaner can clean all of them but note that it is neither required nor necessary to delete all of them. This is from Windows 7, not sure about XP and Vista.

2. Clear the Event Viewer in Windows 7 in just a double click

I have suggested before in this THREAD about clearing the Event Viewer.

The Event Viewer in Windows XP is so much more easier to clear than in Windows Vista and Windows 7 but here is a script. Open Notepad and paste the following:

@echo off

FOR /F "tokens=1,2*" %%V IN ('bcdedit') DO SET adminTest=%%V

IF (%adminTest%)==(Access) goto noAdmin

for /F "tokens=*" %%G in ('wevtutil.exe el') DO (call :do_clear "%%G")

echo.

echo goto theEnd

:do_clear

echo clearing %1

wevtutil.exe cl %1

goto :eof

:noAdmin

exit

then save it as Clean Viewer.bat

That should be the exact name. Its a batch file, save it on your desktop or wherever you want. Just double click it and a command prompt should run, clearing all log lists on the Event Viewer. It works on Windows 7 but I'm not sure about Windows XP and Vista.

Note: Do this only is you absolutely don't need the log lists of the Event Viewer anymore.

As I said in that thread, I would think long and hard about clearing event logs.

They are one of my best friends, I get so much info from them :)

If you right click on a particular type of log (system, security etc) in the event viewer and select properties, you can alter the default log size and when you want it cleared yourself.

The default size is 512kb's then events over 7 days old are overwritten.

Yep that's why I quoted that this should be done only if you absolutely don't need the log lists anymore. What this does is clear the entire Event Viewer lists and this is virtually irreversible so think thrice or more before doing so.