{"id":1096,"date":"2015-09-03T09:27:57","date_gmt":"2015-09-03T15:27:57","guid":{"rendered":"http:\/\/www.riptidehosting.com\/blog\/?p=894"},"modified":"2019-10-18T15:33:45","modified_gmt":"2019-10-18T15:33:45","slug":"how-to-launch-a-program-automatically-when-logging-into-remote-desktop-server","status":"publish","type":"post","link":"https:\/\/www.RiptideHosting.com\/blog\/how-to-launch-a-program-automatically-when-logging-into-remote-desktop-server\/","title":{"rendered":"How to launch a program automatically when logging into Remote Desktop Server"},"content":{"rendered":"<p>Automatically launching a program or application upon login to a Remote Desktop Session.\u00a0 See below for methods to use the &#8220;start program at login&#8221; policy which can be configured per user.\u00a0 Another method to limit specific programs to a user is via RemoteApp.\u00a0 We have several other posts regarding RemoteApp and how to set it up and its limitations (i.e. RemoteApp setup is easier in 2008R2 (works in Workgroup mode)\u00a0than 2012R2 but RDweb requires ActiveX (so IE only) and it doesn&#8217;t work for MAC users, while use of RemoteApp in 2012R2 requires joining to a Domain).<\/p>\n<p><span style=\"color: #000000;font-family: Calibri\"><span style=\"font-size: medium\">1) USING ENVIRONMENT TAB OF EACH USER&#8217;S PROPERTIES ON SERVER:\u00a0 If you want a program to automatically start when a user logs on to the RDP server instead of showing a full desktop session, you can configure this in the Environment tab of the Properties window for each particular user.\u00a0 <\/span><\/span><\/p>\n<p><span style=\"color: #000000;font-family: Calibri;font-size: medium\">\u00a0<a href=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/09\/User_Properties_Environments.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1144\" src=\"http:\/\/localhost\/blog\/wp-content\/uploads\/2015\/09\/User_Properties_Environments-241x300.png\" alt=\"User_Properties_Environments\" width=\"241\" height=\"300\" srcset=\"https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2015\/09\/User_Properties_Environments-241x300.png 241w, https:\/\/www.RiptideHosting.com\/blog\/wp-content\/uploads\/2015\/09\/User_Properties_Environments.png 273w\" sizes=\"auto, (max-width: 241px) 100vw, 241px\" \/><\/a><\/span><\/p>\n<p><span style=\"color: #000000;font-family: Calibri;font-size: medium\">After you have made the changes, you should test that it works properly for your users by logging into the server using the accounts you changed\/created including testing it with simultaneous sessions and to verify the sessions close properly when the application is closed.<\/span><\/p>\n<p>We highly recommend enabling policy to log off disconnected sessions:<\/p>\n<ul>\n<li>Enable policy to log off disconnected sessions immediately or within a few minutes so you don&#8217;t have a blank screen if users don&#8217;t properly exist a program.\u00a0 Existing the program (instead of clicking X in upper right corner of program) will properly log off the session but enabling this policy will ensure that an improper disconnected session is automatically logged off.\u00a0 See block post here for instructions on how to enable this policy on both 2012R2 and 2008R2 <a href=\"http:\/\/www.riptidehosting.com\/blog\/how-to-set-time-limit-for-disconnected-sessions-windows-server-2012r2\/\">http:\/\/www.riptidehosting.com\/blog\/how-to-set-time-limit-for-disconnected-sessions-windows-server-2012r2\/<\/a><\/li>\n<\/ul>\n<p>2<span style=\"color: #000000;font-family: Calibri;font-size: medium\">) USING PROGRAMS TAB ON REMOTE DESKTOP CLIENT &#8211; Another method is to use the programs tab on your local remote desktop client prior to logging in to the server.\u00a0 On the programs tab, you can enter the path for program to start upon login.\u00a0\u00a0You can also\u00a0create a\u00a0RDP shortcut with this information saved on to your desktop.\u00a0\u00a0We have a video on our website on\u00a0creating RDP shortcuts &#8211; <a href=\"https:\/\/youtu.be\/iLKSMcIrfqE\">https:\/\/youtu.be\/iLKSMcIrfqE<\/a> .\u00a0\u00a0A disadvantage to\u00a0this method\u00a0versus the first method above is that\u00a0each user can edit the shortcut and change the settings.\u00a0 Your IT person can create these shortcuts and provide them to each user.\u00a0\u00a0 <\/span><\/p>\n<p>If you use this method on Windows 2008R2, you may have to change settings in RemoteApp under RDP Settings Change and allow access to unlisted programs.<\/p>\n<p><span style=\"color: #000000;font-family: Calibri;font-size: medium\">3) USING GROUP POLICY &#8211; Another method to configure this is to\u00a0<\/span><span style=\"color: #000000;font-family: Calibri\"><span style=\"font-size: medium\">configure programs to automatically start in the RD Session Host Configuration settings and in Group Policy, although then the logon settings could be applied universally to all users, <b>including the Administrator <\/b>(which means Administrator may not be able to access the desktop, start button, etc.)\u00a0<span style=\"color: #000000\">whereas the method above allows configuration by User.\u00a0 You could also create a separate group policy that would be applicable for a specific group, such as non-administrators, so the group policy change wouldn&#8217;t affect all users.\u00a0 <\/span><\/span><\/span><\/p>\n<p><span style=\"font-family: Calibri;font-size: medium\">4)\u00a0 REMOTEAPP &#8211; Another method is to configure the\u00a0<\/span><span style=\"color: #000000;font-family: Calibri;font-size: medium\">RemoteApp feature in Remote Desktop Services (RDS).\u00a0 In 2008R2, this feature works great (either the RemoteApp distributable file or RD Web) for PC users <b>but not for MAC users<\/b>.\u00a0 <b>In 2012R2, the RemoteApp features requires the Active Directory \/ Domain Controller service to be install on the server before RemoteApp can be used<\/b>.\u00a0 <\/span><\/p>\n<p><span style=\"color: #000000;font-family: Calibri;font-size: medium\">\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Automatically launching a program or application upon login to a Remote Desktop Session.\u00a0 See below for methods to use the &#8220;start program at login&#8221; policy which can be configured per user.\u00a0 Another method to limit specific programs to a user is via RemoteApp.\u00a0 We have several other posts regarding RemoteApp and how to set it [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,7,8,12,13],"tags":[69,79],"class_list":["post-1096","post","type-post","status-publish","format-standard","hentry","category-all-posts","category-remote-desktop-hosting","category-remoteapp","category-windows-2008r2","category-windows-2012-r2","tag-terminal-server-hosting","tag-windows-server-2008r2"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/posts\/1096","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/comments?post=1096"}],"version-history":[{"count":1,"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/posts\/1096\/revisions"}],"predecessor-version":[{"id":1597,"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/posts\/1096\/revisions\/1597"}],"wp:attachment":[{"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/media?parent=1096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/categories?post=1096"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.RiptideHosting.com\/blog\/wp-json\/wp\/v2\/tags?post=1096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}