Skip to content

Instantly share code, notes, and snippets.

@steelcm
Created April 30, 2012 13:50
Show Gist options
  • Save steelcm/2558512 to your computer and use it in GitHub Desktop.
Save steelcm/2558512 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
@ndevadas
Copy link

Thank you for making the web a PowerShell reference book.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment