Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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

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

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.