Advertisement
Guest User

Untitled

a guest
Sep 30th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.56 KB | None | 0 0
  1.                 'Start Process
  2.                 Dim theProcessToRun As Object() = {"C:\Users\Public\Desktop\Deploy\ProfelTestFramework.exe"}
  3.                 Dim theConnection As New ConnectionOptions() With {.Username = "administrator", .Password = "*******"}
  4.                 Dim theScope As New ManagementScope(String.Format("\\{0}\root\cimv2", deployLocation), theConnection)
  5.                 Dim theClass As New ManagementClass(theScope, New ManagementPath("Win32_Process"), New ObjectGetOptions())
  6.                 theClass.InvokeMethod("Create", theProcessToRun)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement