Attempting to launch an internet browser on a remote machine. Im having issues concating the arguments line, can someone help? If I don't specify a site to visit, the code works fine, but I want to pass a site to remotely launch.
IM having trouble on a similar script written in VB
Dim targetpc As String = "192.168.1.3"
Dim internet As String = "http://cnn.com"
Dim p As New Process()
p.StartInfo.FileName = "C:\Users\king derek\Desktop\PSTools\psexec.exe"
p.StartInfo.Arguments = "\\" & targetpc & " " & Chr(34) & "C:\Program Files (x86)\Internet Explorer\iexplore.exe" & " " & "http://cnn.com"
p.StartInfo.CreateNoWindow = True
Catch ex As Exception
MsgBox("Shit didnt work")