poshbotio / PoshBot.Networking

PoshBot module for simple networking commands
MIT License
5 stars 7 forks source link

Add support for TestPort command using Test-NetConnection #2

Closed ChrisLGardner closed 5 years ago

ChrisLGardner commented 6 years ago

Add Invoke-TestPort to allow testing ports on remote machines. It makes use of Test-NetConnection to do this and could be extended to make use of the other options within that at a later date.

Related Issue

Solves part of #1

How Has This Been Tested?

Tested from MS Teams against a few different port and server variations.

Screenshots (if appropriate):

Types of changes

Checklist:

ChrisLGardner commented 6 years ago

Some quick testing in PS Core shows that Test-NetConnection isn't available and has been replaced by Test-Connection but the behaviour is different and now more in line with many of the other Test-* commands.

Do we want the same level of verbose output as Test-NetConnection or are we happy with True/False

devblackops commented 5 years ago

Awesome @ChrisLGardner. Thanks!