Pass Hostname to mstsc Remote App

Pass Hostname to mstsc Remote App

avatar

Hi,

I am trying to pass the hostname of a server to a remote app (Microsoft RDWeb) that just starts mstsc.
I imported the .rdp file from RDWeb. Mstsc is opening, but the hostname is not passed.
I tried to pass the hostname the following way:

forum image

RDM version is : 2022.2.14.0 Enterprise

Best regards

All Comments (4)

avatar

Hello,

Could you verify if the Display of your RDP entry is set to External? RemoteApp can only be used in External mode, unfortunately.

forum image

Best regards,

Richard Boisvert

avatar

Hi,

yes the display is set to external.
The remote app (mstsc) is displayed correctly.

Just the hostname is not filled out (although it is set as a parameter as shown in the screenshot within my last post).

Best regards

avatar

Hi,

Does the original .RDP file contain the command-line argument? Can you post a sample here for reference? You may need to change settings server-side for the published RemoteApp to allow command-line parameters: https://learn.microsoft.com/en-us/powershell/module/remotedesktop/new-rdremoteapp?view=windowsserver2016-ps#-commandlinesetting

Otherwise, the server would likely reject the command-line parameters you're trying to pass from RDM

Best regards,

Marc-André Moreau

avatar

Hi,

no, the original RDP file does not contain the command line argument.
I will check with the team administering the RD farm to see if the server side setting is active.

Thanks for your fast support.

BR