How can I know the user that is running some process?

Hello EveryOne

I am looking for a way to get the user name of a process within “For Each Process library”.

I need to evaluate each task manager process to determinate based on user if the process will be killed, I was checking the for each process library and I did find a option that got me the user name.

I hope somebody can help or suggest one alternative.

You should be able to access the username like this

process.StartInfo.UserName

Thaws for your help.

However, I just tried using “process.StartInfo.UserName” but the output is always “empty”.

As you can see in the picture, I want to get Process Name, User Name and Memory Process

Hi @Lucky0906,

Kindly check the example attached and hopefully it will help you.

Main.xaml (12.8 KB)

4 Likes

Very Good, It is fantastic It is really I need
Thanks

You save my life

=)

3 Likes

Is there any way to find the Owner from the Process object.

2 Likes

Hi Acaciomelo,

Is it possible to get Status of a process. eg: Running / Not responding with your approach ?