Find path of a PID process
I want to get the path of a PID. For example the PID is 8036, I want to get the path of it. Like this:
Get-Path -pid 8036
Output:
C:\Windows\svchost.exe
How can I do that? Or can I?
Try:
Get-Process -Id 8036 -FileVersionInfo | Select FileName