Created
July 25, 2023 14:58
-
-
Save jimdiroffii/a84317e3778f97b02c3beb1e8920e2a2 to your computer and use it in GitHub Desktop.
Display all active network connections using PowerShell
This file contains hidden or 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
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