How to Start Remote App via MSTSC instead of RDP initial App

How to Start Remote App via MSTSC instead of RDP initial App

book

Article ID: CTX482607

calendar_today

Updated On:

Description

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

Requirements:

  • Remote Desktop Protocol (RDP) client such as the Microsoft Remote Desktop Connection client (MSTSC.exe).
  • Additional configuration on the VDA server to accept these connection requests such as adding the user to 'Direct access users' local group

Background:

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 initial app 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 VDA.


Instructions

Below is an example to publish task manager as an RDP Remote App,

1.Create an RDP File and open it with the editor and add the following parameters:

  • remoteapplicationmode:i:1
  • full address:s:xxx.xxx.xxx.xxx
  • remoteapplicationprogram:s:"C:\Windows\system32\taskmgr.exe"
Note: the application path to taskmgr.exe is an example


2. Change Registry on VDA/Server which hosts the application

  • Set [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services]
    "fAllowUnlistedRemotePrograms"=dword:00000001

image.png

3. Enable following Citrix Policy via Studio or GPO

Launching of non-published programs during client connection

image.png

4. Start the MSTSC.exe with the created RDP file.

 

Environment

Caution! Using Registry Editor incorrectly can cause serious problems that might require you to reinstall your operating system. Citrix cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. Be sure to back up the registry before you edit it.

Additional Information

https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc733043(v=ws.11)?redirectedfrom=MSDN