Quote:Value does not fall within the expected range
wmiProcess.InvokeMethod("Create", processToRun);
var processToRun = new[] { @"C:\Program Files\Lockheed Martin\Prepar3D v4\Prepar3D.exe" }; var connection = new ConnectionOptions(); connection.Username = ""; connection.Password = ""; var wmiScope = new ManagementScope(String.Format("\\\\{0}\\root\\cimv2", @"192.168.10.155"), connection); var wmiProcess = new ManagementClass(wmiScope, new ManagementPath("Win32_Process"), new ObjectGetOptions()); wmiProcess.InvokeMethod("Create", processToRun);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)