ccleaner清理规则_如何使用CCleaner远程清理网络上的Windows PC

ccleaner清理规则_如何使用CCleaner远程清理网络上的Windows PC

ccleaner清理规则

ccleaner清理规则_如何使用CCleaner远程清理网络上的Windows PC
()

Have you ever needed to clean someone’s PC but you wanted to do it from your computer instead of theirs? Here’s how you can remotely execute CCleaner on any Windows PC you have network access to.

您是否曾经需要清洁某人的PC,但想从计算机上而不是他们的PC上进行清洁? 这是您可以在任何具有网络访问权限的Windows PC上远程执行CCleaner的方法。

在远程计算机上运行CCleaner (Running CCleaner on a Remote Machine)

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

前往Piriform网站并获取CCleaner便携式版本的副本。

ccleaner清理规则_如何使用CCleaner远程清理网络上的Windows PC

Once the download has completed, extract the archive.

下载完成后,解压缩存档。

ccleaner清理规则_如何使用CCleaner远程清理网络上的Windows PC

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.

现在,我们需要创建一个自解压存档-这将帮助我们在将CCleaner复制到远程计算机时自动执行它。 我们选择的工具是WinRAR ,尽管其他自解压的归档构建器也可以工作。 为此,请选择所有提取的文件并将其添加到新的存档中。

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

注意:WinRAR实际上并不是免费的,但是有40天的试用期,对于本文而言已经足够了。

ccleaner清理规则_如何使用CCleaner远程清理网络上的Windows PC

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

我们需要做的第一件事就是告诉WinRAR,我们正在构建一个自解压存档。

ccleaner清理规则_如何使用CCleaner远程清理网络上的Windows PC

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

然后切换到“高级”选项卡,然后单击“ SFX选项”按钮。

ccleaner清理规则_如何使用CCleaner远程清理网络上的Windows PC

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.

现在,您将要转到“设置”选项卡,在这里我们需要指定提取归档文件后要运行的内容。 我们将选择使用CCleaner二进制文件,因为我们的网络上同时装有x86和x64 PC,但是,如果您只有x64 PC,则可能要使用CCleaner64二进制文件,但是无论选择哪个,都不要忘记包含/自动切换。

ccleaner清理规则_如何使用CCleaner远程清理网络上的Windows PC

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.

接下来转到“模式”选项卡,在这里您需要选中“解压缩到临时文件夹”复选框,并将“静音”模式设置为“全部隐藏”。

ccleaner清理规则_如何使用CCleaner远程清理网络上的Windows PC

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

最后,转到“更新”选项卡,并将“覆盖”模式设置为“覆盖所有文件”。

ccleaner清理规则_如何使用CCleaner远程清理网络上的Windows PC

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.

现在,单击“确定”,然后再次单击“确定”以构建存档。 归档文件构建完成后,您可以通过运行它进行测试,您应该看到CCleaner图标出现在“系统托盘”区域中。

ccleaner清理规则_如何使用CCleaner远程清理网络上的Windows PC

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.

现在我们已经能够自动执行CCleaner,我们需要一种将其复制到目标计算机并执行它的方法。 对我们来说幸运的是,PSExec可以完成这两项工作。 因此,请访问Sysinternals网站并获取PSTools的副本。

ccleaner清理规则_如何使用CCleaner远程清理网络上的Windows PC

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

下载PSTools并将其解压缩后,启动命令提示符并找到PSExec可执行文件。

ccleaner清理规则_如何使用CCleaner远程清理网络上的Windows PC

Then go ahead and execute the following command:

然后继续执行以下命令:

PSEXEC \\Taylor-PC -c “C:\Users\Taylor\Downloads\Clean.exe” -u TaylorGibb –p Password

PSEXEC \\ Taylor-PC -c“ C:\ Users \ Taylor \ Downloads \ Clean.exe” -u TaylorGibb –p密码

Replace:

更换:

  • \\Taylor-PC with the DNS name of the remote machine.

    \\ Taylor-PC,带有远程计算机的DNS名称。
  • The file path with the path to the file we created earlier.

    文件路径以及我们之前创建的文件的路径。
  • TaylorGibb with the username on the remote machine.

    TaylorGibb和远程计算机上的用户名。
  • 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.

最后要注意的是,您实际上不会看到进程正在运行,对此将有很长的解释,我将不予赘述,足以说明您是远程执行应用程序,然后在远程计算机上打开任务管理器, 看到该过程正在运行,只是不要留意图标,因为您将永远等待。

ccleaner清理规则_如何使用CCleaner远程清理网络上的Windows PC

That’s all there is to it.

这里的所有都是它的。

翻译自: https://www.howtogeek.com/119953/how-to-clean-a-windows-pc-on-your-network-remotely-with-ccleaner/

ccleaner清理规则