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