Skip to content

Instantly share code, notes, and snippets.

@eriawan
Forked from steelcm/gist:2558512
Created March 28, 2019 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eriawan/c14140ae45dd88c4bf6bab0a483426d6 to your computer and use it in GitHub Desktop.
Save eriawan/c14140ae45dd88c4bf6bab0a483426d6 to your computer and use it in GitHub Desktop.
Find open ports on windows server using PowerShell
PS C:\> netstat -an | select-string -pattern "listening"
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING
TCP 0.0.0.0:81 0.0.0.0:0 LISTENING
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
TCP 0.0.0.0:383 0.0.0.0:0 LISTENING
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment