Pages

Thursday, March 24, 2011

Setup of XP Pooled VM clients for RemoteApp for Hyper-V:

Recently I setup a test bed for a client so that they could test out using pooled VMs to run a Great Plains FRX client that hooked to a Great Plains database back end.

The reason they chose to go this route was that the FRX client did not run on 2008 R2. So if we went with classic terminal services they would have had to use a 2003 Terminal Server, which we saw no reason to go back to now that they have licensing for 2008 R2 RDS.

In the end they will stand up 10 (or so) XP VMs, that will work as pooled VMs. They will also take advantage of RemoteApp for Hyper-V as a way to give access to the FRX client application. Here are my quick setup notes for the pooled VMs running XP (steps are done in order!)



For this example, I started with a base of an XP VM, fully patched, SP3, and added to a domain.
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\TsAppAllowList]
"fDisabledAllowList"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\TsAppAllowList\RemoteDesktops]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\TsAppAllowList\RemoteDesktops\TSRemoteDesktop]
"IconIndex"=dword:00000000
"IconPath"=""
"ShowInTSWA"=dword:00000001
"Name"="Remote Desktop"
  •  Run script: http://gallery.technet.microsoft.com/scriptcenter/68462b23-0890-4dbd-95b6-8de5763e4f68
  • Make sure Firewall exceptions were made (by the script) or the firewall is turned off.
  • Add appropriate Users Group to the local Remote Desktop Users group (enable remote access for this group) Also add any other admin type user or admin group that you want to have remote access.
  • Create RDP file (set the computer name to be the name of the redirector) and then edit these lines to match:
Remoteapplicationmode:i:1
Alternate shell:s:rdpinit.exe
  • Then add the following lines (this test opens Notepad, so customize to your environment):
RemoteApplicationName:s: Remote Notepad Test
RemoteApplicationProgram:s:%windir%/system32/notepad.exe
DisableRemoteAppCapsCheck:i:1
Prompt for Credentials on Client:i:1
loadbalanceinfo:s:tsv://vmresource.1.NAME-OF-POOL-GOES-HERE
  • Save the RDP File. 
  • Set this policy on the OU:
Computer Configuration | Policies | Admin Templates | Windows Components | Remote Desktop Services | Remote Desktop Session host | Session Time Limits | Set The time for disconnected sessions
  •  Reboot the XP VM so the GPO takes effect.
  • Shut down the VM - make sure it shuts down cleanly!.
  • Take a snapshot in Hyper-V
  • Rename the snapshot: RDV_Rollback
  • From a test client , test RemoteApp for Hyper-V, and access to the pool from RD Web Access.
  • If you sign your custom made RDP files, then make sure the client you test from trusts the CA cert used to sign the signing cert.
  • If you use RD Web Access, make sure the client you test from trusts the CA cert used to sign the SSL cert that the website uses.

No comments:

Post a Comment