How to install and run CCleaner on thousands of Windows workstations

Learn how to install and run CCleaner, the utility program used to clean potentially unwanted files and invalid Windows Registry entries from a computer, with RemoteExec.

CCleaner Logo CCleaner supports the cleaning of temporary or potentially unwanted files left by certain programs, including Firefox, Opera, Internet Explorer, Safari, and other applications along with browsing history, cookies, Recycle bin, memory dumps, file fragments, log files, system caches, application data, autocomplete form history, and various other data.

Source: Wikipedia

Deployment with default settings

  1. Download the latest version of CCleaner from: http://www.piriform.com/ccleaner/download

  2. Open RemoteExec and go to Remote Jobs/New Remote Job/File execution through the Configuration tree.

    RemoteExec configuration tree

  3. In the first section «Settings», browse the File field to the setup file previously downloaded.

    RemoteExec configuration

  4. You can find in the help file of CCleaner all command line parameters.

    /S: Performs a silent install of CCleaner with default options.

    /D= Permits to choose a different installation folder than the default.

    /L= Choose the language file identified by the locale ID.

    List of locale ID: http://support.microsoft.com/kb/221435

    List of CCleaner supported language: http://www.piriform.com/docs/ccleaner/ccleaner-settings/changing-the-language-ccleaner-uses

    At minima you must specify the /S as Argument. If you’d like, you can choose the installation path and language.

  5. Set the Context to Administrative and keep the Auto option checked. RemoteExec will optimize the remote execution.

  6. Go to the Target Computers section and select the computers on which you want to deploy CCleaner.

    RemoteExec computer browser

  7. You can now start your deployment by clicking on Launch. The Progress window will pop in a new tab allowing you to follow the remote execution process.


Custom installation

  1. First install CCleaner on your own computer.

  2. Personalize the parameters.

  3. Save these parameters in an ini file: Menu Options/Advanced – Check the box «Save all settings to INI file».
    This option allows CCleaner to use the parameters stored into this INI file instead of those contained in the Windows registry.

    Once this option enabled, your CCleaner installation is now portable.

  4. Open RemoteExec and go to Remote Jobs/New Remote Job/File operation.

    RemoteExec configuration tree

  5. Select in the «Settings» section the Operation «Copy a folder».

    RemoteExec configuration

  6. In the Source path, browse to the installation folder on your workstation.
    By default: C:\Program Files\CCleaner.

  7. Type in the Target path field the folder path you want to set on Target Computers1. It can be the same as on your workstation: C:\Program Files\.

  8. Go to the Target Computers section and select the computers on which you want to deploy CCleaner.

    RemoteExec computer browser

  9. You can now start your deployment by clicking on Launch. The Progress window will pop in a new tab allowing you to follow the remote execution process.

1: If the target path doesn’t exist, all the folders composing the path tree will be created

Note: If you already have a CCleaner installation on Target Computers (with default parameters or even personalized parameters as done here), you can update/change the CCleaner settings using the Ini file. Change the parameters as wanted in your proper installation or directly in an Ini file copy then push it using RemoteExec selecting the File operation «Copy a file». Ini settings description: http://www.piriform.com/docs/ccleaner/advanced-usage/ccleaner-ini-files/using-ccleanerini-to-modify-how-ccleaner-runs


Using CCleaner

You can run CCleaner remotely and silently on computers using RemoteExec. The settings taken into account for this remote runs are those set on target machines (see previous paragraph).

  1. RemoteExec and go to Remote Jobs/New Remote Job/File execution through the Configuration tree.

    RemoteExec configuration tree

  2. In the File field, specify the remote CCleaner.exe path.
    By default: C:\Program Files\CCleaner\CCleaner.exe

    RemoteExec configuration

  3. Fill Argument(s) field with «/AUTO».

  4. Set the Context to Administrative.

  5. Uncheck the Auto box.

  6. Select the Verb «Open».

  7. Select «No» for the Copy files option.

  8. Go to the Target Computers section and select the computers on which you want to run CCleaner.

    RemoteExec computer browser

  9. You can now start your remote execution by clicking on Launch. The Progress window will pop in a new tab allowing you to follow the remote execution process.

Note: When you run CCleaner.exe using the /AUTO parameter, CCleaner does not run the Registry cleaner. You cannot currently run the Registry cleaner through a command-line parameter.

Share this page: