If you’re a PC user who relies on a network to run your software, then you know that cleaning your computer is an essential part of keeping it running smoothly. But cleaning your PC remotely can be a lot more fun and efficient than doing it yourself. There are many different CCleaner programs available for Windows, and each one has its own advantages and disadvantages. Here’s how to clean a Windows PC on your network remotely with CCleaner:

  1. Choose the program that best suits your needs. There are many different CCleaner programs available for Windows, so it’s important to choose the one that best suits your needs. If you’re looking for an easy-to-use program that can clean all of your computer files, then choose CCleaner. If you want to clean only specific files or folders, then choose another program like Clean Master or Data Recovery Wizard.
  2. Connect to the PC using a remote connection. The first step is to connect to the PC using a remote connection. This can be done by connecting directly to the PC via an Ethernet cable or by using a USB port on the computer side of the connection. Once connected, open upCCleaner and click on the “connect” button in the top left corner of the main window. Then enter the IP address or hostname of the PC you want to clean (or use one of our recommended IP addresses).
  3. Start cleaning up your computer files! Once connected, start cleaning up your computer files by clicking on “start” inCCleaner and follow instructions provided by the program. You may need to save some files before starting because CCleaner will automatically delete any old files when it starts cleaning up your computerfiles!

Running CCleaner on a Remote Machine

Head over to the Piriform website and grab a copy of the portable version of CCleaner.

Once the download has completed, extract the archive.

Now we need to create a self-extracting archive–this is going to help us automatically execute CCleaner when it is copied to the remote machine. Our tool of choice is WinRAR, although other self-extracting archive builders may work. To do this select all the extracted files and add them to a new archive.

Note: WinRAR is not actually free, however, there is a 40 day trial available which is more than sufficient for this article.

The first thing we need to do is tell WinRAR that we are building a self-extracting archive.

Then switch over to the Advanced tab and click on the SFX options button.

Now you will want to head over to the Setup tab, here we need to specify what we want to run when the archive has been extracted. We are going to opt to use the CCleaner binary since we have both x86 and x64 PCs on our network, however if you only have x64 PCs you might want to use the CCleaner64 binary, but whichever you choose don’t forget to include the /auto switch.

Next head over to the Modes tab, here you will need to check the Unpack to temporary folder checkbox as well as set the Silent mode to Hide all.

Finally change to the Update tab and set the Overwrite mode to Overwrite all files.

Now click OK and then OK again to build the archive. Once the archive is built you can test it by running it, you should see the CCleaner icon appear in the System Tray area.

Now that we are able to automatically execute CCleaner we need a method of copying it the target computer as well as executing it. Luckily for us PSExec does both those things. So head over to the Sysinternals Website and grab a copy of PSTools.

Once PSTools has downloaded and you have extracted it, fire up a command prompt and locate the PSExec executable.

Then go ahead and execute the following command:

Replace:

\Taylor-PC with the DNS name of the remote machine. The file path with the path to the file we created earlier. TaylorGibb with the username on the remote machine. Password with the password for the remote machine.

The last thing to note is that you wont actually see the process run, there is a long explanation for this which I am not going to get into, suffice to say if you remotely execute the app and then open task manager on the remote machine you WILL see the process run, just don’t look out for the icon because you will be waiting forever.

That’s all there is to it.