There are several running processes with the same name, (for example: notepad.exe) and there is a PID of these processes .
import psutil
PROCNAME = "notepad.exe"
for proc in psutil.process_iter():
if proc.name() == PROCNAME:
print(proc)
I need to find out which network or local user the processes were running under
New contributor
Uri is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
0