Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'Start Process
- Dim theProcessToRun As Object() = {"C:\Users\Public\Desktop\Deploy\ProfelTestFramework.exe"}
- Dim theConnection As New ConnectionOptions() With {.Username = "administrator", .Password = "*******"}
- Dim theScope As New ManagementScope(String.Format("\\{0}\root\cimv2", deployLocation), theConnection)
- Dim theClass As New ManagementClass(theScope, New ManagementPath("Win32_Process"), New ObjectGetOptions())
- theClass.InvokeMethod("Create", theProcessToRun)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement