I am looking for a way to get a Processes "User Name", similar to that found
in Task Manager. Whether it be the local logged on user, SYSTEM, LOCAL
SERVICE, or NETWORK SERVICE.
using System.Diagnostics;
I have tried "StartInfo.UserName" which comes back BLANK and I have tried
"StartInfo.EnvironmentVariables["username"]" which just returns the local
logged on User ID but not SYSTEM, LOCAL or NETWORK SERVICE.
Any help would be appreciated...
Edward - 07 Dec 2007 13:30 GMT
I have the same probleem, when some one can help us.
> I am looking for a way to get a Processes "User Name", similar to that found
> in Task Manager. Whether it be the local logged on user, SYSTEM, LOCAL
[quoted text clipped - 6 lines]
>
> Any help would be appreciated...