Thursday, December 6, 2012

RemoteApp using Windows 8 Hyper-V and a virtual Windows 8


Tweak the virtual machine that is going to host the remote apps


Enable Remote Desktop

    1. Winkey + f, click on "settings" to search for settings
    2. Type "remote" as search term
    3. Click "Allow Remote Access To Your Computer" in search result
    4. The System Properties Panels shows: set radio button  for "Allow remote connections to this computer"
    5. Click on "Ok" to close panel.

Enable RemoteApp (by allowing all applications to start via RDP)

    1. Run regedit: win-key + R and type "regedit" (should start elevated)
    2. Navigate to: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\TSAppAllowList]
    3. Change value for "fDisabledAllowList" to "1" (this is default set to "0")
Restart the machine (the virtual one)

Creating a RemoteApp-RDP file

Create basic RDP file / settings

  1. Start RDP client (win-key + r, type "MSTSC" and press enter)
  2. Set basic settings (like hostname / IP, allow me to save credentials)
  3. Click "Show Options" to show more advanced options.
  4. Click "Save As..." and save RDP file to easy location (desktop?)
  5. Open RDP file from step 4 in a text editor
  6. Add the following settings (at the end of the file and without quotes):
    1. "disableremoteappcapscheck:i:1"
    2. "remoteapplicationprogram:s:notepad"

      *Option 2 is the application the start remotely, if app is not in search path of machine you need to provide complete path to exe.
  7. Change to following settings (without quotes):
    1. set value for "remoteapplicationmode:i:"  to "1"
    2. set value for "alternate shell:s:" to "rdpinit.exe" 

Double click RDP file just created and application should start as remote app (seamless integration within your own desktop)