我一直在嘗試使用 RDP 的“備用 shell”選項在單擊 .RDP 文件後立即啟動遠程程序,但它對我不起作用:啟動 RDP 會話後,標準 Windows shell 顯示(就像伺服器忽略“備用shell”和「shell 工作目錄」條目一樣)
我使用 Win7 Professional 作為 RDP 用戶端 (MSTSC v 6.1.7600),使用 Win2008 Srv 作為伺服器
這是我的 .RDP 檔案:
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
固定使用遠端應用程式。作為參考,以下是使用遠端應用程式精靈產生的 .RDP 檔案:
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: