PowerShell Lab
Build, find and save PowerShell
Reviewed templates and commands with requirements, permissions and risk spelled out. Nothing here runs anything — you copy, review and run it yourself.
Search pages, tools, PowerShell commands and ports
Map listening TCP ports to process names — netstat -ano, readable.
1Get-NetTCPConnection -State Listen |2 Select-Object LocalAddress, LocalPort,3 @{ Name = 'Process'; Expression = { (Get-Process -Id $_.OwningProcess -ErrorAction SilentlyContinue).ProcessName } },4 OwningProcess |5 Sort-Object LocalPort |6 Format-Table -AutoSize