Windows User Login – How to Open a Specific Application on User Login

remote desktopwindows-server-2008-r2

I am working on an application. My requirement is to open a specific application whenever a user logs in, so the workflow is something like this :

  1. I have a cloud machine setup at amazon ec2
  2. The machine is Microsoft windows server 2008
  3. Now I want to specify an application that will open whenever the user connects to Host server(via RDP).
  4. Also the application specified is the only one that can be used by the user in the Remote Desktop Services session.

How can I implement this ?
If anybody has any idea please do suggest.

Best Answer

Simplest way I can think of (and maybe the most secure) is to change the default shell to your program. It can be done in one of the following ways:

  1. Set local GP: User configuration > Administrative templates > system > custom user interface > full path to your application.

  2. Change registry key: [HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Winlogon] “Shell”=”full path to your application” If the "shell" key doesn't exist then create it manually.

Just remember to disable the option of running programs redirected to you from the rdp client.

Related Question