object[] theProcessToRun = { "calc.exe" }; ConnectionOptions theConnection = new ConnectionOptions(); theConnection.Username = "chester"; theConnection.Password = ""; ManagementScope theScope = new ManagementScope("\\\\" + "192.168.10.15" + "\\root\\cimv2", theConnection); theScope.Connect(); // TO PUT THIS OR NOT ??? ManagementClass theClass = new ManagementClass(theScope, new ManagementPath("Win32_Process"), new ObjectGetOptions()); theClass.InvokeMethod("Create", theProcessToRun);
theScope.Connect();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)