July 10th, 2015

PowerTip: Use PowerShell to Obtain Unique List of Process Names

Doctor Scripto
Scripter

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.