So you've restarted a remote server. Obviously, it kicks you off of RDP. You want to RDP into it once it has rebooted, though. So you keep RDPing but you don't know when it is back yet.
I used to just run
Using this, I can know if the RDP service has started listening or not.
It requires the PortQry tool to be in your
(side note - I can never remember the name of PortQry either...