cleaning Windows 2008 C: partition

we have windows 2008 installed on C:partition, the only partition on the server.
If I select all folders under C: and check the properties I see 40GB, if I click on computer icon to open up windows explorer it will show 50GB, so there must be hidden files.
Now I need to clean unwanted files from the disk like the ones shown in disk cleanup of windows 2003,  i don't see it in windows 2008.
There is also a tool that cleans up the unneeded files that get created when an Application is installed, I cannot remember exactly its name , something like has the word Zap in it.

Any help will be very much appreciated.

Who is Participating?
Dan CraciunConnect With a Mentor IT ConsultantCommented:
msizap.exe is no longer supported by Microsoft. Was found to cause more trouble than Redmond was willing to support.

That being said, here are it's switches:

For cleanmgr, here is good article:

Basically, you run cleanmgr.exe /sageset:1 and then set your options (which will be memorized on registry as set 1) and then schedule a cleanmgr /sagerun:1 which will run the previously saved set 1.
jskfanAuthor Commented:
found part of the solution on the link I pasted above, but disk clean , by default ticks only some boxes for deletion by default. I also need the "MSzapp" that cleans up the unneeded files inherited from Apps installation
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

Dan CraciunConnect With a Mentor IT ConsultantCommented:
Click Start, then type "cleanmgr.exe".
It will open the same Disk cleanup tool that you know and love :)

jskfanAuthor Commented:
I was talking about this: Msizap.exe

I want to script and schedule cleanmgr.exe and Msizap.exe

how ever cleanmgr.exe  when it runs, as you can notice ,by default, it does not tick all the checkboxes of folder to delete. so If I script it , I need all those folders to be deleted instead of only the ticked ones by default.
jskfanAuthor Commented:
Thank you...........I will try it
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.