Skip to content

Instantly share code, notes, and snippets.

@battleoverflow
Created March 23, 2022 19:43
Show Gist options
  • Save battleoverflow/a6c9c503f0b88aaa0a13a0d92d3ee881 to your computer and use it in GitHub Desktop.
Save battleoverflow/a6c9c503f0b88aaa0a13a0d92d3ee881 to your computer and use it in GitHub Desktop.
Powershell Port Scanner (one-liner)
foreach ($r in 1..254) { Test-NetConnection -Port $r }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment