As this question is closed (where I intended to answer first) I'm opening this one.
On some machines it is forbidden to install/download binaries so I want to know how can I check if a port on a remote machine is open using only native windows script capabilities.
If you only want to check TCP ports you can use Test-NetConnection. If offers a -Port
parameter to define the TCP port.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With