anthonyg-1 / pstcpip Goto Github PK
View Code? Open in Web Editor NEWThis PowerShell module contains functions that faciliate testing network connectivity, TLS/SSL and other network tasks
License: MIT License
This PowerShell module contains functions that faciliate testing network connectivity, TLS/SSL and other network tasks
License: MIT License
Get-TLSInformation
should have a default parameter set defined. I also suggest you make the parameter of the default to be mandatory.
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.
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.
If your module only works in PowerShell 7, I suggest you use the module manifest to specify that requirement.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.