Tuesday, September 27, 2011

Testing TCP Ports with Powershell

Send-MailMessage is a great addition with Powershell version 2.0, it greatly reduces the complexity of send a test SMTP message, including allowing attachments.

Just found a good script to allow testing TCP ports.
http://www.leeholmes.com/blog/2009/10/28/scripting-network-tcp-connections-in-powershell/
Send-TcpRequest.ps1

I was able ot use that script/ example along with
the notes on this page to test access to a proxy.
http://tuxbaby.blogspot.com/2009/04/testing-squid-proxy-via-telnet.html

No comments: