Detecting if port is refusing/dropping new connections on Windows Server via Powershell.


Is there a way to detect via PowerShell a port is refusing new connections or dropping connection requests on a server?

Thank you.
ZackGeneral IT Goto GuyAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

ZackConnect With a Mentor General IT Goto GuyAuthor Commented:
Hi Bing,

I have my answer:

Thank you for your input.
bbaoIT ConsultantCommented:
I think you can PowerShell to check if a port is open at listening status or in closed status with no application running behind it. but i don't think you can use PS to dynamically detect or monitor if the port is refusing or dropping a specific request or packet at a moment as it beyond the capability of a scripting language.
ZackGeneral IT Goto GuyAuthor Commented:
It's the solution that fits after 2 hrs on Google.
bbaoIT ConsultantCommented:
good to know you have found the solution and thanks for sharing it.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.