We use mstsc.exe to establish RDP connections to other servers in batch files, which are then terminated after some tasks have been run. This basically works fine, but every now and then it takes mstsc.exe extraordinarily long to set up the connection. Is there a way to check / hint that mstsc has finished the set up of the link successfully and that the RDP connection can be used?