How to install and run CCleaner on thousands of Windows workstations with RemoteExec

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
- Download the latest version of CCleaner from: http://www.piriform.com/ccleaner/download
- Open RemoteExec and go to Remote Jobs/New Remote Job/File execution through the Configuration tree.

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

- 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/…
At minima you must specify the /S as Argument. If you’d like, you can choose the installation path and language. - Set the Context to Administrative and keep the Auto option checked. RemoteExec will optimize the remote execution.
- Go to the Target Computers section and select the computers on which you want to deploy CCleaner.

- You can now start your deployment by clicking on
. The Progress window will pop in a new tab allowing you to follow the remote execution process.
Custom installation
- First install CCleaner on your own computer.
- Personalize the parameters.
- 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. - Open RemoteExec and go to Remote Jobs/New Remote Job/File operation.

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

- In the Source path, browse to the installation folder on your workstation.
By default: C:\Program Files\CCleaner. - 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\.
- Go to the Target Computers section and select the computers on which you want to deploy CCleaner.

- You can now start your deployment by clicking on
. 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).
- RemoteExec and go to Remote Jobs/New Remote Job/File execution through the Configuration tree.

- In the File field, specify the remote CCleaner.exe path.
By default: C:\Program Files\CCleaner\CCleaner.exe
- Fill Argument(s) field with «/AUTO».
- Set the Context to Administrative.
- Uncheck the Auto box.
- Select the Verb «Open».
- Select «No» for the Copy files option.
- Go to the Target Computers section and select the computers on which you want to run CCleaner.

- You can now start your remote execution by clicking on
. 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.
Mozilla Firefox is a free and open source web browser descended from the Mozilla Application Suite and managed by Mozilla Corporation. The latest Firefox features include tabbed browsing, spell checking, incremental find, live bookmarking, a download manager, private browsing and location-aware browsing.