Skip to content

Instantly share code, notes, and snippets.

@jimdiroffii
Created July 25, 2023 14:58
Show Gist options
  • Save jimdiroffii/a84317e3778f97b02c3beb1e8920e2a2 to your computer and use it in GitHub Desktop.
Save jimdiroffii/a84317e3778f97b02c3beb1e8920e2a2 to your computer and use it in GitHub Desktop.
Display all active network connections using PowerShell
Function Get-ActiveConnections {
netstat -an | Where-Object { $_ -match 'ESTABLISHED|LISTENING' }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment