I have this script to find all processes and ports on my machine that have the NetTCPConnection State set to "Listen" Get-NetTCPConnection -State Listen | Select-Object -Property LocalAddress, LocalPort, RemoteAddress, RemotePort, State,@{name='Process';expression={(Get-Process -Id $_.OwningProcess).Name}}, CreationTime | Format-Table -AutoSize How do I filter the output so I can only see a particular service, or set of services from the full list? im looking for something like: eg where servicename like "svhost* or where servicename like "s*" thanks