UPDATE: See Paulo’s comment for an update / fix from Microsoft for this issue. My solution still works, but a Microsoft update is available.
Recently we published a Remote Desktop connection for a customer using Windows 2012 Remote Desktop Web Access.
Upon showing the page, the tab “Connect to a remote PC” was shown:
When testing the environment the customer wanted this tab removed, since it added only confusion to the users.
Googling around I found several solutions. One as described by Microsoft in http://technet.microsoft.com/en-us/library/cc731465.aspx which describes a method using IIS Manager to edit the application properties to not show Remote Desktops in a Windows 2008R2 environment.
This method is also described by numerous other people to be working in Windows 2012 environments.
Since we only publish a Remote Desktop connection and no Remote Apps, we ran into an issue:
Obviously all Remote Desktop functionality is hidden now.
On your server hosting the RDweb application open a File Explorer and browse to C:\Windows\Web\RDweb\Pages.
Make a safety-copy of the file “Site.xsl” and then edit the original file.
Remove the selected lines. This will effectively remove the seperator between the two tabs on the Remote Web Access page.
Edit the textblock <xsl:otherwise>.. </xsl:otherwise> as shown in the screen above and save your changes. This last edit will effectively remove the ability to click the second tab.
Next browse to C:\Windows\Web\RDweb\Pages\en-us (or any language you support).
Make a safety-copy of the file “Default.aspx” and then edit the original file.
Find the highlighted line and edit it to look like the line shown in the screenshot. So remove the text “<%=L_DesktopTab_Text%>” and change “Desktops.aspx” into “Default.aspx”. This change effectively “hides” the tab.
Reload the Remote Web Access page:
Voila, tab to “Connect to a remote PC” removed, Remote Desktop functionality retained.
You will probably have to redo these changes after patches / service packs that affect the RDweb application.