Cleaning up corporate temporary files

Posted by zdravkos 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:

4 Responses to “Cleaning up corporate temporary files”

  1. on 14 Jan 2010 at 0:45 Zdravko Stoychev

    New version is available, Cle 1.1

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


  2. [...] of) computers over the network. To learn how to set up this app over the network, check this guide (useful for corporate administrators).It also has a build-in option to Rebuild the Windows Prefetch [...]

  3. on 14 Mar 2011 at 16:53 Bendt Kjeldsen

    It is very good, but I want to clean my
    “Temperary Internet Files”
    at every startup.

    How can I do that.

    Bendt

  4. on 14 Mar 2011 at 17:32 zdravko

    There is an option for this. Just activate it.

Trackback This Post | Subscribe to the comments through RSS Feed

Leave a Reply