Skip Ribbon Commands
Skip to main content

Ondrej Sevecek's English Pages

:

Engineering and troubleshooting by Directory Master!
MCM: Directory

Quick Launch

Ondrej Sevecek's English Pages > Posts > How to obtain RDP file contents for a RemoteApp from RDWeb and RD Connection Broker on Windows 2012 and newer
March 22
How to obtain RDP file contents for a RemoteApp from RDWeb and RD Connection Broker on Windows 2012 and newer

With Windows 2008 R2 it was possible to export standalon RDP file for each remote app defined in the RemoteApp Manager console. The RemoteApp Manager console is not present on Windows 2012 and you must configure the remote apps using the new server manager console instead. The server manager console does not allow you to export RDP files. Instead, users are required to start remote applications through the rdweb browser application only.

If you want to export the RDP file contents though, you can do it manually with PowerShell from the RD connection broker computer. You must use the Win32_RDCentralPublishedRemoteApplication WMI class found in root\cimv2\TerminalServices namespace:

# to display the contents for all applications
gwmi Win32_RDCentralPublishedRemoteApplication -namespace root\cimv2\TerminalServices | select Name, RDPFileContents

# to export the RDP file contents for a remote app into an RDP file
'calc' | % { 

    $app = $_
    gwmi -Query "SELECT * FROM Win32_RDCentralPublishedRemoteApplication WHERE Name = '$app'" -Namespace root\cimv2\TerminalServices | select -Expand RDPFileContents | Set-Content "$app.rdp"
}

Alternatively, you can start the remote app from browser. You need to disable the RDP client ActiveX control - you open the internet explorer's Managed Add-ons dialog box and disable the MsRdpClientShell class aka the Remote Desktop Services ActiveX Client. When you disable the activex control, browser will let you download the RDP file instead of serializing its parameters directly into the mstsc client.

Comments

Re: How to obtain RDP file contents for a RemoteApp from RDWeb and RD Connection Broker on Windows 2012 and newer

note also that the web site address MUST NOT be part of Local Intranet, because the Add-In works without enabling in local intranet IE security zone. So in order to be able to download the RDP file instead, you must move the rdweb site into the Internet security zone in internet explorer
 on 23/03/2016 15:13

Re: How to obtain RDP file contents for a RemoteApp from RDWeb and RD Connection Broker on Windows 2012 and newer

Thank you for this post. It aided me in solving the problem. Glad I came across.
 on 06/04/2018 05:53

Re: How to obtain RDP file contents for a RemoteApp from RDWeb and RD Connection Broker on Windows 2012 and newer

The alternative way: use another browser (other then IE). It will ask/download the RDP file when you click on icon on the WA site.
 on 14/08/2019 16:04

Add Comment

Sorry comments are disable due to the constant load of spam *


This simple antispam field seems to work well. Just put here the number.

Title


You do not need to provide any value this column. It will automatically fill with the name of the article itself.

Author *


Body *


Attachments