Server Fault is a question and answer site for system and network administrators. 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 it possible to run a vbscript remotely with psexec? Normally the field of psexec calls for an exe file, so can this be changed or manipulated to deal with a vbs file?

share|improve this question
up vote 2 down vote accepted

Got it to work by making cscript.exe the command to use and then the vbs file is its argument. Fixed now. Thank you.

share|improve this answer
Yep! That's how it is done. – Skyhawk Nov 20 '10 at 2:20

This post suggests it is:

share|improve this answer
I looked at that and still am a little confused. Will the csript exe be copied along with the vbscript to the remote machine? – Ben Nov 16 '10 at 18:58
cscript.exe is available in Windows by default: c:\windows\system32\cscript.exe. You should be able to run vbs like that: cscript some.vbs on any machine. – Nov 16 '10 at 19:02

Your Answer


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.