1
I am trying to launch an application using the "alternate shell" option of RDP to start a remote program. But it is not working and I am getting the whole session. Is that feature removed from the window 10? Or am I missing some properties? I simply edited the RDP file to change the alternative shell and executed the file.
enablecredsspsupport:i:0
authentication level:i:2
screen mode id:i:1
use multimon:i:0
desktopwidth:i:1600
desktopheight:i:900
session bpp:i:32
winposstr:s:0,3,4192,-9,4992,591
compression:i:1
keyboardhook:i:2
audiocapturemode:i:0
videoplaybackmode:i:1
connection type:i:7
networkautodetect:i:1
bandwidthautodetect:i:1
displayconnectionbar:i:1
enableworkspacereconnect:i:0
disable wallpaper:i:0
allow font smoothing:i:0
allow desktop composition:i:0
disable full window drag:i:1
disable menu anims:i:1
disable themes:i:0
disable cursor setting:i:0
bitmapcachepersistenable:i:1
full address:s:192.168.0.103
audiomode:i:0
redirectprinters:i:1
redirectcomports:i:0
redirectsmartcards:i:1
redirectclipboard:i:1
redirectposdevices:i:0
autoreconnection enabled:i:1
authentication level:i:2
prompt for credentials:i:0
negotiate security layer:i:1
remoteapplicationmode:i:0
alternate shell:s:c:\Program Files\Notepad++\notepad++.exe
shell working directory:s:
gatewayhostname:s:
gatewayusagemethod:i:4
gatewaycredentialssource:i:4
gatewayprofileusagemethod:i:0
promptcredentialonce:i:0
gatewaybrokeringtype:i:0
use redirection server name:i:0
rdgiskdcproxy:i:0
kdcproxyname:s:
drivestoredirect:s:
username:s:masood
I am trying to set an application as alternate shell. For example notepad++
What are you setting as the alternate shell? Try: add at the beginning of the .rdp file the lines:
enablecredsspsupport:i:0
andauthentication level:i:2
. – harrymc – 2017-04-24T15:23:32.267I am trying to set an application as alternative shell for example: alternate shell:s:c:\Program Files\Notepad++\notepad++.exe. It can be any application – مسعود – 2017-04-25T12:44:59.590
I have added but It's still not working – مسعود – 2017-04-25T13:09:53.347
Does your command look like
alternate shell:s:c:\winnt\system32\notepad.exe
? Please post the .rdp file. – harrymc – 2017-04-25T13:29:14.663I have updated my question – مسعود – 2017-04-26T08:33:05.737
any suggestions?? – مسعود – 2017-05-03T10:04:32.253
Try the alternative method, although it will apply to all RDP connections: Use Local Group Policy (gpedit.msc) at:
Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Remote Session Environment\Start a program on connection
. – harrymc – 2017-05-03T10:38:05.970Although this is not my requirement but I also tried this method before, It was also not working. I had set the application as remote app maybe it is because of that or windows 10 no longer support alternate shell. – مسعود – 2017-05-03T13:18:12.320
RemoteApp already specifies the app to execute - you can't have two of them. For what you want, you should return to the classical method. – harrymc – 2017-05-03T16:29:14.017