none
Run Program on Remote Desktop Connection Startup RRS feed

  • Question

  • 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

  • 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

    Monday, March 19, 2018 12:56 AM
    Moderator
  • 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 tnmff@microsoft.com.

    Tuesday, March 20, 2018 7:38 AM
    Moderator
  • 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 tnmff@microsoft.com.

    Monday, March 26, 2018 2:04 AM
    Moderator
  • 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 tnmff@microsoft.com.

    Thursday, April 5, 2018 2:21 AM
    Moderator
  • 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