Using the below code, I can retrieve the image name and process ID of the DOS command window on a remote machine, but can I also retrieve the DOS window title?
Dim current As Process = Process.GetCurrentProcess()
Dim processes As Process() = Process.GetProcesses("REMOTE_COMPUTER")
Dim ThisProcess As Process
For Each ThisProcess In processes
If ThisProcess.ProcessName.ToUpper.Contains("CMD") Then
ListBox1.Items.Add("Process Name: " & ThisProcess.ProcessName & vbTab & "Process ID: " & ThisProcess.Id)
End If
Next