Cleaning up corporate temporary files

Posted by zdravko on 07 Jan 2010 at 11:57 am | Tagged as: Cool, Tech

Imagine your company has hundreds if not thousands of computers. Imagine they are running for at least of a year. How many applications, updates, SP-s were installed meanwhile? How many unused files are left after that? How many temporary files were placed anywhere on those computers? Are your users complaining their computers are getting slow, or that their system drive is full? You want to cleanup! But how?

First of all you download Cleanup Temporary Files (shortly “Cle”) tool. The you setup Logon script for your Active Directory’s users (or OU-s, if you prefer) as this:

REM -- Startup script "user.bat"
REM -- Cleanups the PC temporary and unused files from
REM -- various (hidden) places.
\\SRV-DFS\Files\Audit\cleanup\Cle.exe /custom 32839 /p

then on each user Logon this will happen in the top left corner of the Desktop:

Of course all this could be managed from Cle Configuration application, which brings lots of settings and allows you to cleanup custom specified folders. You can tune up the GUI as well, even you can disable the visuals at all, so Cle would work quietly in the background. Corporate admins could deploy a company-wide Cleanup Policy easily using command-line switches as shows above, and force it to computers using “/s” option.

Noted the magic number parameter after the “/custom”? Well it could be easily obtained from Windows Registry (using regedit.exe) once you have run Cle Configuration. It should be specified as a decimal and not hexadecimal number. Here is its location in the Registry:

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\5GROUP\Cle]
“Selection”=dword:00008047 (32839)

and here is a screenshot of Cle’s Configuration dialog:

2 Responses to “Cleaning up corporate temporary files”

  1. on 14 Jan 2010 at 12:43 am Anonymous

    New version is available, Cle 1.1

    http://www.5group.com/wordpress/2010/01/14/cle-11/

  2. on 14 Jan 2010 at 12:45 am Zdravko Stoychev

    New version is available, Cle 1.1

    http://www.5group.com/wordpress/2010/01/14/cle-11/

Trackback This Post | Subscribe to the comments through RSS Feed

Leave a Reply