Skip to main content

5.2.1 – RDP parameters

Parameter                                                                                                                                                                                                                                                      Value
gatewayBindString, address and listening port of the gateway.
For example: 192.168.0.8:443
serverString, address of the RDP host.
portInteger, RDP listening port. Optional, default is 3389
userString, user name (Windows User).
pwdString, password for user name.
domainString, domain name
keyboardInteger, keyboard layout, default is 0x409 (US)
useConsoleBoolean, connecting to console session/Admin mode. Default is false.
legacyModeBoolean, connecting to xrdp or VirtualBox RDP
widthInteger, screen width of RDP session. Default is 800
heightInteger, screen height of RDP session. Default is 600
server_bppInteger, color depth of RDP session. Default is 16
playSoundInteger, Default is 1: Do not play sound; 0: bring sound to local; 2: leave sound on remote computer.
startProgramString, "shell": start a program on connection; "app": start a RemoteApp
commandCommand for “Start a program on connection (startProgram=shell)”
directoryDirectory for running command (startProgram=shell)
exeProgram or file for RemoteApp (startProgram=app)
argsArguments for RemoteApp (startProgram=app)
backgroundBoolean, default is false, disable background.
smoothfontBoolean, default is false, disable font smoothing.
contentsBoolean, default is false, disable full windows drag.
animationBoolean, default is false, disable menu animations.
compositionBoolean, default is false, disable desktop composition.
stylesBoolean, default is false, disable theming.
mapClipboardBoolean, default is false, disable clipboard rediretioin.
mapPrinterBoolean, default is false, disable printer redirection.
mapDiskBoolean, default is false, disable disk redirection.
touchpadBoolean, default is false, touchpad mode (relative mouse movement, touch interface only).
waWidthWork area width for RemoteApp, Default value is the screen width. You may want to change it if you display app in a iframe.
waHeightWork area height for RemoteApp. Default value is the screen height. You may want to change it if you display app in a iframe.
printerPrinter name. You can specify multiple printer names by using “;” as seperator, e.g. “Printer1;Printer2”. The first one will always be the default printer.
useSSLUse WSS (WebSocket secure connection), only used by Rdp2 class.
timezoneThe client time zone name. Please check the values you can use in rdp.html
loadBalanceInfoLoad balance information
vmidHyper-V VM GUID, For example: B3D5444C-2611-405A-9CA0-7AA8DA94DF0B, it’s for Hyper-V console connection.
minWidth, minHeightMinimum width and height, some applications can only work on a minimum resolution
connectTypeConnecting type:

CONNECTION_TYPE_MODEM 1
Modem (56 Kbps)

CONNECTION_TYPE_BROADBAND_LOW 2
Low-speed broadband (256 Kbps - 2 Mbps)

CONNECTION_TYPE_SATELLITE 3
Satellite (2 Mbps - 16 Mbps with high latency)

CONNECTION_TYPE_BROADBAND_HIGH 4
High-speed broadband (2 Mbps - 10 Mbps)

CONNECTION_TYPE_WAN 5
WAN (10 Mbps or higher with high latency)

CONNECTION_TYPE_LAN 6
LAN (10 Mbps or higher)

Default value is 5.
shareClipboardIdConnections will same shareClipboardId will use shared clipboard on gateway. User can copy anything among these connections
shareClipboardon: enabled shared clipboard, it’s enabled by default if mapClipboard is on.
symlinkId of the created symlink.
sessionRecord0: no session recording, 1: recording grphic only (no sound), 3 means recording graphic and sound. This can only be configured in pluign
__record_nameRecording file name. This can only be configured in pluign before version 4.8.8.
recordingon: record session on client side
audioRecordon: enable remote audio recording
pingIntervalSeconds for ping
soundPref0: low quality sound; 1: high quality sound
smartcardon: enable smart card redirection
passwordIsPinUse password as the pin of smart card
nameShow the name on the cursor on joined users
macComputer MAC address for Wake on LAN. Need to enable it in gateway.conf (timeoutWoL)
macIPNetwork broadcast ip address for WoL.
decompressingRDP61Enable RDP6.1 compression.
portCheckTimes, portCheckIntervalGateway will check if the port is open before connecting. portCheckInterval: milliseconds.
copyToLocalon: user can copy data to local from remote. It can be used to disable bi-directional copy/paste
copyToRemoteon: user can copy data to remote from local. It can be used to disable bi-directional copy/paste
copyTextOnlyon: user can only copy plain text.
textPrinteron: redirect a text only printer (for receipts, label printers)
mapCameraBoolean, default is false, enable webcam redirection. Enable it in RDP server with Group Policy: Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Device and Resource Redirection > Do not allow supported Plug and Play device redirection: Disabled
scannerBoolean, default is false, enable scanner redirection.