G
Guest
Hi,
I am trying to get the SessionId of processes on a remote machine using
System.Diagnostics.Process:
foreach (Process p in Process.GetProcesses("remotemachine"))
{
Console.WriteLine(p.SessionId.ToString());
}
SessionId is always 0 while Task Manager (on the remote machine) shows the
correct Session ID. Any ideas why?
Thanks,
Anders
I am trying to get the SessionId of processes on a remote machine using
System.Diagnostics.Process:
foreach (Process p in Process.GetProcesses("remotemachine"))
{
Console.WriteLine(p.SessionId.ToString());
}
SessionId is always 0 while Task Manager (on the remote machine) shows the
correct Session ID. Any ideas why?
Thanks,
Anders