PowerTip: Use PowerShell to Find Path for Processes


Summary: Use Windows PowerShell to find the path of the executable for running processes.

Hey, Scripting Guy! Question I noticed a process and I am unsure of what it does. How can I use Windows PowerShell to find more information?

Hey, Scripting Guy! Answer Look at the path to the executable to find information about a process. If it is legitimate, often the folder
           provides decent information. Here is an example:

(Get-Process -Name snagit32).path

Comments (4)

  1. very helpful, thanks

  2. jra says:

    Please make sure that you operate correct power shell console:
    1. 32 bit console will only show process running in 32 bit context.
    2. 64 bit console will show both i.e. 32 and 64 bit

  3. William says:

    Hi thanks for the tip! Just curious what -Name does? Also how can you specify a specific process when there are ones of the same name like for chrome?

  4. You can also run: get-process -name firefox | select path

Skip to main content