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.

How to Get the Username of Current User Opening An Excel File?

You should be able to access the username like this



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)


Very Good, It is fantastic It is really I need

You save my life


Can not recoder and mouse scroll