VPS RDP console connection

Артем Иванов 1 Reputation point
2020-09-11T12:11:11.943+00:00

Hi. I use azure vps server + Miscrosoft Remote Desktop app on macos for RDP connection to my vps.
The problem: I need to run script even after I close my mac. I.e. when rdp connection of Miscrosoft Remote Desktop is gone. But what I see is in 10 or 15 mins after I close my mac, connection is dropped and vps seems to be asleep, so my scrip fails to run.
Is there any way to force vps working event if I have no RDP admin connection.
I found an info I can run a console RDP connection, but cant find any details info.

Windows for business | Windows Client for IT Pros | User experience | Remote desktop services and terminal services
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. MotoX80 36,291 Reputation points
    2020-09-13T16:29:54.17+00:00

    Set the disconnected session timeout to never log you off.

    configure-remote-desktop-connection-disconnected-session-timeout

    Another option is to use the Task Scheduler to run your script. That will likely require modifications since it would be running in an unattended session with no user interface. It all depends on what the script does and how you use it.

    0 comments No comments

  2. Anonymous
    2020-09-14T06:23:34.37+00:00

    Hello,

    If the RD session is terminated, you can enable below items and set to never.

    24334-image.png

    If the server is auto locked, and your session is just becoming disconnected, you can change the value of Turn Off the Display to 0.
    Computer Configuration \ Administrative Templates \ System \ Power Management \ Video and Display Settings

    24335-image.png

    After that, reboot your server or refresh the GPO by typing the following command:
    PowerShell: gpupdate /force

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards
    Karlie


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.