Processes User Name


J Ford

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

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...

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question