telnet - Getting PSEXEC to run a local .vbs file on a remote machine without copying it over -
i psexec
run .vbs
file on remote machine me, have have .vbs
located on remote machine.
below example of script work.
psexec \\<\i.paddress\> -u <\user\> -p <\password\> -w c:\ -h cscript.exe "c:\users\admin\desktop\test.vbs"
is there solution saves me having place test.vbs
file on remote machine before hand?
use -c option (http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx)
-c copy specified program remote system execution. if omit option application must in system path on remote system.
Comments
Post a Comment