Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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!

Cheers.

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
add comment

1 Answer 1

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:

http://technet.microsoft.com/en-us/library/hh847900.aspx

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.