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


#1

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?
#2

You should be able to access the username like this

process.StartInfo.UserName


#3

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


#4

Hi @Lucky0906,

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

Main.xaml (12.8 KB)


#5

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

You save my life

=)


Can not recoder and mouse scroll