windows - Keep RDP from locking session in Server 2012

13
2014-04
  • Colum

    I am running windows Server 2012 with two users. I have an app that takes a screenshot of a game console that runs under each user. The problem I am having is that I can't detach the Remote Desktop Session without causing the process to fail.

    Under Server 2003, I was able to use tscon.exe 0 /dest:console but running tscon.exe 2 /dest:console or rdp-tcp#2 under server 2012 it does not work.

    Is there a way I can do this?

    Also, unlike when I was using Server 2003, I am running the programs under their own users that are not admins. If that helps.

    EDIT: tscon.exe RDP-Tcp#0 /dest:console /password:ACCPASS works, but the desktop does not refresh. So every time the script takes another screenshot (every 30 seconds), it is the same as the last one. What I'm trying to do is to get RDP to function like VNC, where the desktop stays active and logged on after disconnect

  • Answers
    Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

    Related Question

    remote desktop - RDP slower when connecting a Windows 7 Ultimate to Server 2003?
  • Johann Kruger

    I have a successful RDP connection on Windows XP Professional to Windows Server 2003 at a remote site. I setup another machine running Windows 7 Ultimate. although I am able to get connection, comparing the machines side by side, the Windows 7 connection is dog slow. I have compares that the 2 RDP connections is identical as far as experience etc. I have run a internet connection speed test which show the 2 computers connect at the same speed to the internet.


  • Related Answers
  • Nils Magne Lunde

    Remote Desktop on Windows 7 is leveraging a feature called auto-tuning for TCP/IP. This might be the culprit in your case.

    I have had success running the following command to speed things up:

    netsh interface tcp set global autotuninglevel=highlyrestricted

  • James

    Silly point to make, but check whether a cabled connection to your network makes a difference to your RDP client's performance.

    I have a Windows 7 64-bit box acting as a server, RDP enabled, etc. Windows XP machines can connect at normal frame-rates over wifi but Windows 7 machines connect at about 1 frame in 10 seconds...

    Connecting the Win7 machines directly to my router with a network cable completely cured the issue, so now it seems I have some troubleshooting to do on my wifi network :-)