You may recall from my last post on RemoteApp, that we can get RemoteApp for Hyper-V works on other platforms too. While it was straight-forward publishing applications from a Windows 7 host, the client would report this error when connecting to Windows XP and Windows Vista hosts:
Kind of annoying, because the original RemoteApp for Hyper-V post on the RDS blog, showed us something cool but left out the important part on how to get it working. Well, thanks to Justin and this comment, I’ve been able to fix the issue and get RemoteApp running on XP and Vista (unfortunately I can’t take any of the credit).
Liam Westley has already done a great job of documenting the complete process for setting up RemoteApp, so for full details go there - I’ll just summarise and fill in the missing pieces.
What You’ll Need
First up there is a set of minimum components that will need to be in place:
- The client computer can be Windows XP SP3, Windows Vista SP1+ or Windows 7 (unless Microsoft decides to release an RDC update for Windows Server – unfortunately I don’t think they will)
- Remote Desktop Connection 7.0 – built into Windows 7, available for Windows XP (KB969084) and Windows Vista (KB969084)
- The RemoteApp host can be Windows XP SP3, Windows Vista SP1+ or Windows 7
- If the RemoteApp host is running Windows XP or Windows Vista, you’ll need the following updates: Update for Windows XP SP3 to enable RemoteApp or Update for Windows Vista SP1 or above to enable RemoteApp (Windows 7 works out of the box)
Configure the RemoteApp Host
When configuring the host, I’ve been using been using a 1-to-1 setup, I haven’t tested this with pooled virtual desktops yet.
To enable RemoteApp on the host, install the hotfix, then configure the
TsAppAllowList key in the registry. In this example, I’ve configured the required entries for running Calculator. Here’s a listing of the registry values I added with the pertinent values highlighted.
[code highlight=”2,9,12″ wraplines=”true”][HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\TSAppAllowList]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\TSAppAllowList\Applications\calc]
The simplest method of discovering the required registry keys for each RemoteApp entry is to configure the applications on Windows XP Mode or Windows Server 2008 running Remote Desktop Services.
Creating RemoteApp Connections
I’ve originally based the .RDP file on those created by the RemoteApp Manager in Windows Server. There is documentation on TechNet on how to configure RemoteApp programs and creating the .RDP file for each application here: Configuring RemoteApp Programs.
The important entries for connecting to Windows XP and Windows Vista, that you may need to add manually, are
disableremoteappcapscheck (set to 1) and
alternate shell (set to rdpinit.exe). These were the only additional entries I need to add the .RDP file to get this working. DisableRemoteAppCapsCheck fixes the ‘remote computer does not support RemoteApp’ error, and Alternate Shell makes sure you actually get a published application and not a remote desktop.
An .RDP file to connect to a RemoteApp program then looks like this (the added lines are highlighted):
prompt for credentials on client:i:1
allow font smoothing:i:1
alternate full address:s:winxp1.domain.local
screen mode id:i:2
allow desktop composition:i:0
disable full window drag:i:1
disable menu anims:i:1
disable cursor setting:i:0
prompt for credentials:i:0
negotiate security layer:i:1
shell working directory:s:
use redirection server name:i:0[/code]
RemoteApp in Action
When launching the RemoteApp program, the UI isn’t quite as seamless as you get with the XenApp client. You will first see a warning prompt if the .RDP file is not signed, and then a dialog box while the client connects:
If the RemoteApp host is Windows XP, the user will be required to click the Details button to see the remote login dialog box and enter their credentials:
If the client is Windows XP or above and the host is Windows Vista or above, you can configure credential pass-through (single sign-on) to make connecting seamless. You must first enable CredSSP on Windows XP SP3 clients. Pass-through won’t work for Windows XP hosts - although you may be able to save the username and password in the .RDP file instead.
So finally with all of the pieces in place, here’s what you’ll see with applications running via RemoteApp. In this screenshot I have Calculator running remotely from Windows XP and Windows Vista next to the local version.
One thing to note is that the remote applications are all group together on the taskbar; in this screenshot, the two remote Calculators are grouped with Remote Desktop Connection – users’ won’t see separate remote buttons as you get in competing products.
So What’s Left?
Use of RemoteApp is not restricted to the brand of hypervisor - RemoteApp will be available on Windows XP+ regardless of where it is running. You could, for example, use blade PCs as hosts.
If you have Citrix XenApp or Quest vWorkspace, you already have tools to publishing applications from virtual desktops, so where would this actually be useful? SMBs without either product would benefit (although I have had one enterprise customer ask me about this feature) or perhaps this would work as a replacement for Windows XP Mode if you don’t like Windows Virtual PC (and who does?).
Deploying and managing the .RDP files could be fun. A simple method of deployment would involve the use of Windows Installer packages adapted from those generated by RemoteApp Manager. You could also use your user environment management tool of choice; however the option that holds most promise is extending RD Web Access. Custom code will be required, but it would replace copying .RDP files to users’ desktops and could even support pooled virtual desktops.
Ultimately it would be nice to see this documented on TechNet. Apparently though, the RDS team are working on a follow up post that should give us all the info we need and more.
Update (October 2011)
Kim Knight has written a GUI tool to configure the RemoteApp application and create an RDP file to deliver to clients. This will automate the entire process for you. RemoteApp Tool.