Last active
February 3, 2022 23:24
-
-
Save chadmando/c3951d0e7f1037f33171329bfc83e859 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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