September | 2016 | I do stuff sometimes.

Ramblings about things.

Monthly Archives: September 2016

Powershell: Test connection on computer port


I use this if telnet is not layin’ around – mainly to test if a computer is reachable on a specific TCPport. try { $portquery = New-Object System.Net.Sockets.TcpClient(“SERVERNAME”, PORTNUMBER) $portquery.Close() return $true } catch [system.exception] { return $false } F

Read More

  • Archives