Craig Carboni - 2016-08-30

These are the same keywords that are used in a .RDP files that MSTSC creates
RDP files are actually plain text files.

Explaination of the Remote Desktop Connection .rdp File Keywords (Compact 7) can be found here: https://msdn.microsoft.com/en-us/library/gg156129(v=winembedded.70).aspx

file location: ../phpvirtualbox/endpoints/rdp.php

Section to modify in the rdp file

echo('
full address:s:'.@$_GET['host'].(@$_GET['port'] ? ':'.@$_GET['port'] : '').'
compression:i:1
displayconnectionbar:i:1
protocol:i:4
');

After the line for protocol:i:4, add in any of the following keywords as in the following example

echo('
full address:s:'.@$_GET['host'].(@$_GET['port'] ? ':'.@$_GET['port'] : '').'
compression:i:1
displayconnectionbar:i:1
protocol:i:4
screen mode id:i:1
use multimon:i:0
desktopwidth:i:1024
desktopheight:i:768
session bpp:i:24
winposstr:s:0,3,0,0,800,600
keyboardhook:i:2
audiocapturemode:i:0
videoplaybackmode:i:1
connection type:i:6
networkautodetect:i:0
bandwidthautodetect:i:1
enableworkspacereconnect:i:0
disable wallpaper:i:1
allow font smoothing:i:1
allow desktop composition:i:1
disable full window drag:i:0
disable menu anims:i:1
disable themes:i:1
disable cursor setting:i:0
bitmapcachepersistenable:i:1
audiomode:i:2
redirectprinters:i:0
redirectcomports:i:0
redirectsmartcards:i:0
redirectclipboard:i:0
redirectposdevices:i:0
drivestoredirect:s:
autoreconnection enabled:i:1
authentication level:i:2
prompt for credentials:i:0
negotiate security layer:i:1
remoteapplicationmode:i:0
alternate shell:s:
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:
');

keyword "winposstr" specifies the position of the Remote Desktop Connection (RDC) window on the client computer and is explained here: https://technet.microsoft.com/en-us/library/ff393696(v=ws.10).aspx

 

Last edit: Craig Carboni 2016-08-30