PowerTip: Use PowerShell to Get Unique List of Process Names


Summary: Use Windows PowerShell to get a list of unique process names.

Hey, Scripting Guy! Question How can I use Windows PowerShell to obtain a list of all the unique process names running on my system?

Hey, Scripting Guy! Answer Use the Get-Process cmdlet, pipe the results to the Select-Object cmdlet, and specify the Name property
           and the –Unique switch:

Get-Process | select name -Unique

Comments (1)

  1. James Brown says:

    Compare:
    Get-Process | Measure-Object
    Get-Process | Select Name -Unique | Measure-Object

    A difference of 32 on my system, more than I would have guessed.

Skip to main content