In PowerShell:

General solution. To get path and other info of a process, you would run:

$ Get-Process <options> | Select-Object <options>

For specific process PID you would run:

Example:

Get-Process -Id 2728 | Select-Object -Property ProcessName, Id, WS, Path

Outputs:

enter image description here

For all processes with given name, you would run:

Example:

Get-Process svchost | Select-Object -Property ProcessName, Id, WS, Path

Outputs:

enter image description here

Documentation:

SelectObject

Get-Process

0
Would love your thoughts, please comment.x
()
x