<< 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
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]
}