ProcessOperationExecuteProcess Method |
Executes a process using WMI.
This allows for remote execution with an admin account context.
Namespace:
Xcalibur.WMI.Processes
Assembly:
Xcalibur.WMI (in Xcalibur.WMI.dll) Version: 3.0.0.0 (3.0.1.0)
Syntax public static string ExecuteProcess(
ManagementScope ms,
string exePath,
bool newWindow = false
)
Public Shared Function ExecuteProcess (
ms As ManagementScope,
exePath As String,
Optional newWindow As Boolean = false
) As String
public:
static String^ ExecuteProcess(
ManagementScope^ ms,
String^ exePath,
bool newWindow = false
)
static member ExecuteProcess :
ms : ManagementScope *
exePath : string *
?newWindow : bool
(* Defaults:
let _newWindow = defaultArg newWindow false
*)
-> string
Parameters
- ms
- Type: System.ManagementManagementScope
The management scope. - exePath
- Type: SystemString
The exe path. - newWindow (Optional)
- Type: SystemBoolean
if set to true [new window].
Return Value
Type:
StringSee Also