Post by VimalPost by Gerry HickmanHi,
You have to be more clear.
If this "app" is an interactive GUI app then you won't like WMI. If it's
a totally silent console app and you don't care about the exit code and
you have remote admin rights to the target machine, then you may be OK.
Post by v***@gmail.comHi
Can anyone assist me in how to start an application on a remote
machine using WMI.
I can execute the app if it situated on my local machine.
Any assitace would by higherly appreciated.
Thanks
Vimal
--
Gerry Hickman (London UK)
HI
Thank you for you response.
It is a console application.- Hide quoted text -
- Show quoted text -
This is the snippet of code i use to establish a connection
public void CreateRemoteConnection()
{
try
{
//Create connection to remote computer
ConnectionOptions options = new ConnectionOptions();
options.Impersonation =
ImpersonationLevel.Impersonate;
options.EnablePrivileges = true;
_Scope = new ManagementScope("\\192.168.41.58\root
\cimv2", options);
_Scope.Connect();
}
catch (Exception ex)
{
throw new Exception(String.Format("WMI exception:
{0}", ex.Message));
}
}
The error i get is RPC server is not available