CCleaner: Tips for cleaner workstations and servers

The free tool CCleaner addresses one of the least appealing jobs of a system administrator: neatening up all of the junk that tends to accumulate in the cracks and crevices of a system.

Sometimes these accumulations are just annoying, like stale IE cache data

Requires Free Membership to View

that refuses to disappear. Other times they're downright harmful, like invalid Registry entries that can confuse programs and cause them to fail. Here are some quick ways to get the most out of CCleaner, whether it's running on a workstation or server.

  1. Configure the program for automatic cleanup. To do this at startup, create a shortcut in the Start menu (or in the user's roaming profile) that invokes CCleaner with the /AUTO command-line switch. This performs all of the standard cleaning actions; the program closes automatically after it's done. Run the program once first, by hand, to select the appropriate cleaning options to use by selecting Cleaner from the left-hand menu and then checking or unchecking all the appropriate options in the Windows and Applications tabs.

  2. Set the program to clean out Temp directories in User Profile folders. These directories -- usually found in \Documents and Settings\<username>\Local Settings\Temp -- are a massive dumping ground of data used by various programs, especially installers, which routinely unpack files into them and leave them there. Many problems with a given user profile can be traced to a garbage-cluttered Temp folder.

    One word of caution about Custom Folders: CCleaner uses a directory-tree interface to let the user select the directory to add to the Custom Folders list. It's not possible to type in a path by hand, and the tree will not show hidden files or folders if they are disabled in Explorer (i.e., it reflects Explorer's current behavior vis-a-vis those files).

    If you're trying to add a Temp directory found in a user's Local Settings folder, you won't be able to see it unless you have Explorer set to show hidden files and folders. Once you do that, click Options | Custom Folders | Add Folder, and browse to the Temp folder in the appropriate user profile.

  3. Be careful not to prune log files on servers. Under Cleaner | Windows | System, there's an option labeled Windows Log Files. Don't check this option on servers, since keeping log files is usually pretty critical! You may not want to check the Memory Dumps option either, depending on whether you habitually preserve memory dumps created by a crash.

  4. INDEX.DAT files can only be cleaned after a reboot. Internet Explorer's INDEX.DAT files, which control which files are cached, can become corrupt and may need to be manually removed. In Cleaner | Windows | Internet Explorer, the Delete INDEX.DAT Files option only works after a reboot, which may not be practical on some systems.

Serdar Yegulalp is editor of the Windows Power Users Newsletter. Check it out for the latest advice and musings on the world of Windows network administrators -- and please share your thoughts as well!

Click here to return to Expert picks: Favorite downloads

This was first published in November 2005

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.