Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to setup PSExec within a batch file to silently run CCleaner on remote PC's via a batch file scheduled in Task Scheduler? I understand CCleaner has an /AUTO switch on the command line, but I'm not particularly familiar with PSTools so anyone who may have even done this before (as it seems a pretty nifty idea) could offer some advice!


share|improve this question
What have you tried already? Where are you getting stuck trying to use PSExec with CCleaner? – Ƭᴇcʜιᴇ007 Jun 30 '12 at 19:10
up vote 1 down vote accepted

I would recommend using PowerShell remoting instead of psexec.exe, as this will give you much greater control over the remote session(s). For more information about PowerShell remoting, launch PowerShell and type: help about_remote. Alternatively, visit this URL:

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .