How to reconnect to Remote Session in a script?

Posted by Lukasz on Super User See other posts from Super User or by Lukasz
Published on 2010-05-03T17:37:36Z Indexed on 2010/05/03 17:38 UTC
Read the original article Hit count: 375

Hello,

I need to persist a Remote desktop connection across a reboot of a Terminal server. I'm thinking that it would be something like a scheduled task that would run periodically and check the running state of the session and restart it if it's down. BTW, I did check the "Reconnect..." checkbox on the advanced tab of the connection options, but it still goes down everytime we restart the terminal server.

Does anyone have the script that would accomplish the above in a scheduled task, or perhaps another solution?

© Super User or respective owner

Related posts about remote-desktop

Related posts about scheduled-tasks