Windows – Remote Desktop Services: start a program on connection within desktop environment

group-policyremote desktopwindowswindows-server-2008-r2

I have Windows Server 2008R2 with Remote Desktop Services.
I need certain program started on every connection, within normal remote desktop environment.

I tried this group policy:
"Local Group Policy" ==> "Computer Configuration" ==> "Administrative Templates" ==> "Windows Components" ==> "Remote Desktop Services" ==> "Remote Desktop Session Host" ==> "Remote Session Environment" ==> "Start a program on connection"

Problem is, it replaces desktop environment with a single program: there is no task bar, no start menu, and when user quits the program, session ends.

I need a program to be started within normal desktop environment, just like "Start Menu ==> Programs ==> StartUp", but for every successive connection, not just initial one.

I don't mind hacky solution, I just need to get it done.

Best Answer

Use Task Scheduler.

Set it up on each computer or remote desktop.

First start Task Scheduler.

Name it and put a description if you would like.

enter image description here

Next click Triggers. Here you will select what you want to start the program in this case you want the program to start at logon.

Or as in Your case you figures out "Connection from remote computer" will work in place of the logon.

Here you can select at any logon or setup certain accounts that logon.

enter image description here

Next you select your program. Place your program path. As well as the start Dir.

enter image description here

Now when ever you connect via Remote Desktop you will have the desktop environment as well as the program you want to start when you login.

Related Question