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.
Also for remote execution I tried using wmic but it did not work when firewall was on. Iteried remotely running notepad.exe. It works if firewall is off but I cannot assume that firewall would be always off.
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#) ?
Also I cannot
View Complete Post