<< Back to Script Library

Test ControlUp Agent port

Test connectivity from the ControlUp console machine to the ControlUp Agent port (40705 by default) of the destination machine
Version: 3.8.10
Created: 2020-07-14
Modified: 2020-08-31
Creator: Landon Winburn
Downloads: 73
Tags: port tcp telnet
The Script Copy Script Copied to clipboard
if ($args[2] -eq "False") {
$WarningPreference = 'SilentlyContinue'
Test-netconnection -computername $args[0] -port $args[1] | Select-Object PingSucceeded,TcpTestSucceeded

if ($args[2] -eq "True") {
Test-netconnection -computername $args[0] -port $args[1]