title: Getting PSEXEC to run a local .vbs file on a remote machine without copying it over
body: <p>I would like to get <code>PSEXEC</code> to run a <code>.vbs</code> file on a remote machine for me, however I currently have to have the <code>.vbs</code> located on the remote machine.</p>
  
  <p>Below is an example of my script which does work.</p>
  
  <pre><code>psexec \\&lt;\i.pAddress\&gt; -u &lt;\User\&gt; -p &lt;\Password\&gt; -w c:\ -h cscript.exe "C:\Users\admin\Desktop\test.vbs"
  </code></pre>
  
  <p>Is there any solution which saves me having to place the <code>test.vbs</code> file on the remote machine before hand?</p>