Skip to content

Instantly share code, notes, and snippets.

@chadmando
Last active February 3, 2022 23:24
Show Gist options
  • Save chadmando/c3951d0e7f1037f33171329bfc83e859 to your computer and use it in GitHub Desktop.
Save chadmando/c3951d0e7f1037f33171329bfc83e859 to your computer and use it in GitHub Desktop.
# needs refinement to only print the names of processes with connnections to addresses other than localhost
Get-Process | ForEach-Object {Write-Host $_.Name; Get-NetTCPConnection -OwningProcess $_.Id -ErrorAction SilentlyContinue }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment