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?

link|improve this question
feedback

2 Answers

This post suggests it is:

link|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. – icyrock.com Nov 16 '10 at 19:02
feedback
up vote 1 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.

link|improve this answer
Yep! That's how it is done. – Miles Erickson Nov 20 '10 at 2:20
feedback

Your Answer

 
or
required, but never shown

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