07-21-2023, 07:01 PM
I have service named `WinDefend` and it runs on process `svchost.exe`
There other many `svchost.exe` processes and I need to find a way to get its ID.
when I run `tasklist /svc` I can see:
![enter image description here][1]
I am not sure how can I get it.
I found this command but when I tried the `select "PID"` it gave me empty column.
![enter image description here][2]
I need to get the PID of the process to variable.
[1]:
[2]:
There other many `svchost.exe` processes and I need to find a way to get its ID.
when I run `tasklist /svc` I can see:
![enter image description here][1]
I am not sure how can I get it.
I found this command but when I tried the `select "PID"` it gave me empty column.
![enter image description here][2]
I need to get the PID of the process to variable.
[1]:
[2]: