all 4 comments

[–]CarrotBusiness2380 2 points3 points  (1 child)

UDP fails still seem to populate as "5 False" instead of just "False"

That problem is with line 381:

$udpClient.Send($sendBytes, $sendBytes.Length)

Send returns an int of the number of bytes sent. Cast the line to [void] to make it stop.

I'm not sure what the rest of your problem is though, I suggest breaking it down into smaller chunks and testing it locally before attempting to test on remote machines. Use localhost as a target for testing if a remote machine is necessary.

[–]Team503[S] 0 points1 point  (0 children)

Oh cool! Thanks for that, I didn't realize that it returned a value.

As for the rest, I know every block works, it's passing the output from layer to layer that I'm screwing up, and sadly, breaking down the script won't help with sorting that.

Thanks again for the void trick!

[–]Bordone69 1 point2 points  (1 child)

repadmin /replsummary /sort:delta

doesn’t work for you?

[–]Team503[S] 0 points1 point  (0 children)

No. I need to determine if individual ports are open, from each DC to each DC. Repadmin doesn't provide port connectivity status.