Wednesday, December 5, 2018

NetCat with Powershell

I keep forgetting this and when you look for Powershell-like NetCat command you find tons and tons of really large scripts - evidently implementing the full schema - not what I wanted (but, to be fair, exactly what I asked for).  Anyways - here this:

PS > Test-NetConnection -ComputerName 172.16.1.5 -Port 22 -InformationLevel "Detailed"

or

PS > Test-NetConnection -ComputerName "mypc.example.com" -Port 22 -InformationLevel "Detailed"

1 comment: