var connection = new ConnectionOptions(); connection.Username = @"xxxx"; connection.Password = "zzzzzz"; object[] theProcessToRun = { @"\\pcsupp\Applications\GetComputerLocation.exe" }; var wmiScope = new ManagementScope($@"\\TDS68924-EPIC\root\cimv2", connection); wmiScope.Connect(); using (var managementClass = new ManagementClass(wmiScope, new ManagementPath("Win32_Process"), new ObjectGetOptions())) { managementClass.InvokeMethod("Create", theProcessToRun); }
-i
-i 1
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)