Windows server 2012 Log Off a remote desktop session without locking the screen

半世苍凉 提交于 2019-12-25 06:03:15

问题


As in title. Is there any way to achieve this?

I have problem, because when you close remote desktop, gui and whole interface is being locked and any gui based applications or my autoit scripts won't work (they are crashing constantly).

I tried using 'tscon.exe' but this works only on windows server 2008.


回答1:


I have the same issue, and I resolved it doing the following:

  1. Connect to RD to your server with user "A"
  2. From the remote computer, connect to RD to localhost to user "B" (create it if necessary)
  3. From the new session, run anything you need.
  4. Disconnect the FIRST session, with user "A".

In this way, the session running with user "B" will not be locked, and it will continue running your GUI controls.




回答2:


Log off means the current session (created by logging in during RDP) is terminated. What you want is to keep the Logon Session live but disconnect the RDP.

Why not use AutoLogon to boot into console and run the scripts? However if the screen locks or someone RDPs and disconnects, the problem you are facing will reoccur.




回答3:


What I have is to keep GUI and whole windows interface alive when i close remote desktop. Session is alive but gui and whole workstation is getting locked everytime I close rd.



来源:https://stackoverflow.com/questions/31656695/windows-server-2012-log-off-a-remote-desktop-session-without-locking-the-screen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!