I need to copy and execute a .vbs script from my local machine to a remote machine from a C# program.
I tried using psexec but it seems that it is unable to copy the vbs file to a remote machine.
I'd rather not copy the file with net use (and then execute it with psexec).
The Remote machine is protected by a username and password.
Can you think on an elegant solution to copy and execute the script?
Thanks