Hi,
I have an application (.exe files) that I need to install on remote machine. For this I need to copy .exe file from my machine A remote machine B and execute it remotely.
I have local administrative privilleges on remote machine.
For e.g. Username & password on remote machine : "remoteAdmin" , "remotePassword".
However this "remoteAdmin" account is not present in my local admin group on my machine A.
Is there a way to do this ?
Also on remote machine B firewall may be on or off.
I tried this using WMI but there were some issues due to firewall.
I can do this using File.Copy method of System.IO namespace but it needs "remoteAdmin" account to be present in my local machine's (A) Administrators group. I have even tried creating new user account and adding to admin goup using DirectoryServices
but I don't know how to set domain for the new account.
So , is there a way to copy file and remotely execute them if I have admin username and password for remote machine ( preferable using C++ or C#) ?
Thank you in advance.