List Running Images


I wanted to generate a list of running processes. But, instead of getting 300 Firefox processes, this PowerShell one-liner lists each image uniquely.


Get-Process | Select-Object -Property Name,Path | Sort-Object -Property Path -Unique                                         

Name                           Path
----                           ----
(sd-pam)                       
chrome_crashpad_handler        /opt/vivaldi/chrome_crashpad_handler
Vivaldi-Zygote                 /opt/vivaldi/vivaldi-bin
pwsh                           /snap/powershell/261/opt/powershell/pwsh
akonadi_akonotes_resource      /usr/bin/akonadi_akonotes_resource
akonadi_archivemail_agent      /usr/bin/akonadi_archivemail_agent
...


References


Get-Process | Microsoft Learn

Get-Member | Microsoft Learn

Select-Object | Microsoft Learn

Sort-Object | Microsoft Learn


Created: Saturday, January 13, 2024

Updated: Saturday, January 13, 2024




/gemlog/