Remote desktop connection on startup

We're planning on going fully virtual desktops and using Windows RDS. What would be the easiest / most cost effective way of allowing users to log into their session after they've booted up the PC?

We're planning on using Thin PC OS from Microsoft, but I honestly believe we're not seeing the full picture here and I am looking for your guys opinion and experience on the matter.

EDIT thanks for your suggestions everyone! So far a solution we've found a batch file that runs at start up (edited the registry key shell to open this file instead of the explorer.exe)

echo off
CLS
:start
echo DO NOT CLOSE THIS WINDOW
start /wait c:\windows\system32\mstsc.exe c:\connect.rdp
shutdown -l

Over all it's working well we just have some kinks to work out. It's not a pretty solution however.

I have a HP Thin Client PC, which is connected to VMware ESXI host with two virtual machines. The thin client connects to the virtual machines through Remote Desktop. I would like the thin client to start the remote desktop to start automatically when it boots up. Is there anyway to do this?

2

This article describes how to specify a program to start on connection by using Microsoft Remote Desktop Connection.

  • Remote Desktop Protocol (RDP) client such as the Microsoft Remote Desktop Connection client (MSTSC.exe).
  • Additional configuration on the XenApp Server to accept these connection requests.
Launching applications through RDP can be used for troubleshooting purposes, such as, to compare the behavior of RDP with ICA protocol.

For example, an application displays an error message when accessing through the Citrix ICA protocol. You can use RDP to compare the behavior of the application.

This option works only if you are connecting to a Terminal Server or Remote Desktop Services. This Microsoft Windows role is installed on each Citrix Presentation Server or XenApp server.

To specify a program to start a connection using Microsoft Remote Desktop Connection, complete the following procedure:

  1. Open Start > Programs or All Programs > Accessories > Communications > Remote Desktop Connection.

Remote desktop connection on startup

 

  1. Click Options in the lower left corner to display additional tabs.

  2. On the General tab, specify the XenApp server hostname, Fully Qualified Domain Name (FQDN) or IP address.

  3. Activate the Programs tab.

  4. Select the Start the following program on connection: option.

  5. Type the path to the executable and the folder as shown in the following screen shot:

Remote desktop connection on startup

  1. Click Connect.

  2. Complete the Windows authentication if prompted.

NOTE : For newer versions of OS, refer  https://support.citrix.com/article/CTX218256 You might receive the following error messages:

Remote desktop connection on startup

Remote desktop connection on startup

To resolve this error, complete the following steps:

 Presentation Server 4.5 or XenApp 5 on Windows Server 2003

  1. Click Start > Programs or All Programs > Administrative Tools > Terminal Services Configuration.

  2. Right-click on RDP-Tcp listener in the Connections hive.

  3. Select Properties.

  4. Activate the Citrix Settings tab.

  5. Clear the Non-Administrators only launch published applications option.

Remote desktop connection on startup

 XenApp 6.x on Windows Server 2008 R2

  1. Open the Citrix AppCenter management console.

  2. Select Policies under the farm.

  3. Activate the User tab.

  4. Add a new or modify an existing user policy.

Note: You can edit the Unfiltered User Policy to ensure that it is applied for all users to all servers.

  1. In the Edit Policy Window, on the Settings tab, open ICA settings.

  2. Enable the Launching of non-Administrator programs during client connection option.

Remote desktop connection on startup

  1. Ensure that the policy is filtered properly to the user that is used for the RDP connection.

Note: You can edit the Unfiltered User Policy to ensure that it is applied for all users to all servers.

Ask a question

Quick access

  • Remove From My Forums

Asked by:

Run Program on Remote Desktop Connection Startup

Archived Forums

>

Remote Desktop Services (Terminal Services)

  • Question

  • Remote desktop connection on startup

    Remote desktop connection on startup

    0

    Sign in to vote

    Windows 2012 server

    I am trying to configure a User to run certain program like notepad, when he connects to Remote session, I just use Environment tab on User profile properties and I specify the program to run, where to start and check the checkbox: Run Program on Startup. It seems this has no effect the user can successfully login but notepad doesn't run and there are no error messages.

    This would be an easy and clean solution. What do I miss here?

    Thank you.

    Monday, March 19, 2018 12:34 AM

All replies

  • Remote desktop connection on startup

    Remote desktop connection on startup

    0

    Sign in to vote

    Hi,

    Please confirm you have RD Session Host Role Service installed on your 2012 server. This is required for the Start the following program at logon setting to work.

    Thanks.

    -TP

    • Proposed as answer by Eve WangMicrosoft contingent staff Monday, March 26, 2018 2:03 AM

    Monday, March 19, 2018 12:56 AM

  • Remote desktop connection on startup

    Remote desktop connection on startup

    0

    Sign in to vote

    Hi,

    You can consider of applying this via group policy - Start a program on connection. This Group Policy settings is located in the following locations:

    Computer Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Remote Session Environment

    User Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Remote Session Environment

    Specify a Program to Start Automatically When a User Logs On:
    https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc770821(v=ws.11)

    Best Regards,
    Eve Wang


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact .

    • Proposed as answer by Eve WangMicrosoft contingent staff Monday, March 26, 2018 2:03 AM

    Tuesday, March 20, 2018 7:38 AM

  • Remote desktop connection on startup

    Remote desktop connection on startup

    0

    Sign in to vote

    Hi,

    How things are going there on this issue?

    Please let me know if you would like further assistance.

    Best Regards,
    Eve Wang


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact .

    Monday, March 26, 2018 2:04 AM

  • Remote desktop connection on startup

    Remote desktop connection on startup

    0

    Sign in to vote

    Hi,

    Is there any update?

    Please click “Mark as answer” if any of above reply is helpful. It would make this reply to the top and easier to be found for other people who has the similar problem.

    Best Regards,
    Eve Wang


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact .

    Thursday, April 5, 2018 2:21 AM

  • Remote desktop connection on startup

    Remote desktop connection on startup

    0

    Sign in to vote

    You can consider of applying this via group policy - Start a program on connection. This Group Policy settings is located in the following locations:

    User Configuration\Policies\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Remote Session Environment

    Hello Eve,
    I think this solution works for all users, also for Administrator. How should I work around it?

    Do you know the reasons because the "User profile" doesn't works anymore?
    Thanks a lot.

    Ciao

    Wednesday, May 2, 2018 5:20 PM