I get a list of all running processes on my computer like this:
static void AllInfoProcess() { var myProcess = from proc in Process.GetProcesses() orderby proc.Id select proc; Console.WriteLine("\n*** Текущие процессы ***\n"); foreach (var p in myProcess) { Console.WriteLine("-> PID: {0}\tName: {1}", p.Id, p.ProcessName); } Console.WriteLine("Всего процессов запущено {0}", myProcess.Count()); } I need to get a list of processes on the remote machine. In my case, I installed a virtual machine (VirtualBox), configured the connection type between my OS and the Virtual Host Adapter virtual machine. And it seems as if using the same method, only with the ComputerName parameter will output all processes running there, but no matter how I wrote, it outputs processes from the local OS.
System.Diagnostics.Process.GetProcesses("ComputerName"); Can you please tell me how to display the processes running on the remote machine?