Git Product home page Git Product logo

pstcpip's People

Contributors

anthonyg-1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pstcpip's Issues

Format tcpConnectionStatus as autosized table

This is a small thing, but it makes a big difference in usability. You can modify your formatting XML to create an auto-sized table.
Here is your default output:

image

And auto-sized.

image

 <TableControl>
         <AutoSize />
        <TableHeaders>

Test-NetConnection vs Test-TcpConnection

I'm curious about the advantages of using your Test-TcpConnection command over Test-NetConnection. I like that your command lets me test multiple ports, but is there anything else? I'd put this information in the help and your readme file.

Add 5986 to port list

I suggest adding port 5986 to your port list for WSMan SSL connections. Another option would be to add commands to the module to let the user manage $tcpPortAndDescriptionData. I know I can do something like this:

$tcpPortAndDescriptionData[5986] = "WinRM/SSL"

But it is always nicer to give the user a command.

Use parallel option in Test-TCPConnection

Because your module requires PowerShell 7, you should use ForEach-Object -parallel in Test-TCPConnection for performance. I tested with 4 machines, and it took over 1 minute. But using the parallel option only took 18 seconds. Yes, I know the user could run this:

"srv1","srv2","dom1","srv3" | foreach-object -Parallel { Test-TcpConnection -HostName $_}

But you could make your command easier and faster by adding this internally so that this:

Test-TcpConnection -HostName srv1,srv2,dom1,srv3

Runs just as quickly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.