14

I've been trying to use the "alternate shell" option of RDP to start a remote program immediately after clicking in the .RDP file, but it isn't working for me: after starting the RDP session, the standard Windows shell shows up (like if the server is ignoring the "alternate shell" and "shell working directory" entries)

I'm using Win7 Professional as RDP client (MSTSC v 6.1.7600) and Win2008 Srv as server

This is my .RDP file:

screen mode id:i:1
desktopwidth:i:800
desktopheight:i:600
session bpp:i:16
auto connect:i:1
full address:s:192.168.1.5
compression:i:1
keyboardhook:i:2
audiomode:i:2
redirectdrives:i:0
redirectprinters:i:0
redirectcomports:i:0
redirectsmartcards:i:0
displayconnectionbar:i:1
username:s:Admin2
domain:s:AKA
alternate shell:s:C:\Windows\System32\notepad.exe
shell working directory:s:C:\Windows\System32
disable wallpaper:i:1
disable full window drag:i:1
disable menu anims:i:1

disable themes:i:1
bitmapcachepersistenable:i:1
1
  • I'm curious as to the answer to this as well. This seems like a pain in the rear to troubleshoot.
    – surfasb
    Jul 27, 2011 at 22:16

1 Answer 1

6

Fixed using RemoteApp. For reference, here's the .RDP file generated with the Remote App wizard:

redirectclipboard:i:1
redirectposdevices:i:0
redirectprinters:i:1
redirectcomports:i:1
redirectsmartcards:i:1
devicestoredirect:s:*
drivestoredirect:s:*
redirectdrives:i:1
session bpp:i:32
span monitors:i:1
prompt for credentials on client:i:1
remoteapplicationmode:i:1
server port:i:3389
allow font smoothing:i:1
promptcredentialonce:i:1
authentication level:i:0
gatewayusagemethod:i:2
gatewayprofileusagemethod:i:0
gatewaycredentialssource:i:0
full address:s:192.168.1.5
alternate shell:s:||IVA
remoteapplicationprogram:s:||IVA
gatewayhostname:s:
remoteapplicationname:s:IVA.EXE
remoteapplicationcmdline:s:
2
  • 1
    Did you figure out why did you need the || ?
    – Char
    Jul 15, 2016 at 16:19
  • 2
    Doing this on Windows 10 Pro requires the following policy to be set: [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services] "fAllowUnlistedRemotePrograms"=dword:00000001 social.technet.microsoft.com/Forums/de-DE/… Jun 8, 2018 at 11:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .