UltraVNC Server Commandline Parameters
winvnc [-sc_promt] [-sc_exit] [-id:????] [-autoreconnect[ ID:????]] [-connect host[:[:]port]] [-run]
Parameters are order dependent !!
-connect host[:port]
-connect host <--- would connect to port 5500
if port < 1024 +5900 is added
Sample: host:1 -> port=5901,host:21 -> port=5921
-connect host[::port] ( 2 X : )
host::21 -> port=21
Special case: host[::port] =??? == request host and port
-autoreconnect
Is used in conjunction with the -connect switch when having a server "Reverse-connect" to a listening viewer.
You can use it in a batch file for your clients that are behind a firewall that is not under your control.
The batch file looks something like this:
"c:\program files\ultravnc\winvnc" -autoreconnect -connect 12.34.56.78
On the local computer run the viewer in "listening" mode, and have someone on the server end run the batch file.
The -autoreconnect will make the server end attempt to reconnect to the listening viewer if the connection drops or is closed.
It will immediately reconnect to the listening viewer if the session is closed.
Close the listening viewer altogether in order to stop the server end from "autoreconnecting" to your computer.
The server attempts to "autoreconnect" for only a few seconds.
Note that this "autoreconnect" param must be before the "connect" one on the command line!
-autoreconnect[ ID:????]
-id:????
The id is used when using a repeater. In that case the id
identify the server to the repeater. When id is used, the
host in "-connect host..." is the repeater.
example:
winvnc -sc_prompt -sc_exit -id:1234 -connect repeaterhost -run
-kill
Close winvnc running as service or started as application
-run
Need to be the last parameter, tell winvnc that no more
parameters are left
-sc_prompt
This option modify some behavioiur for Single Click usage.
*Pass server info to viewer and request viewer accept
(This use an unofficial rfb protocol, require ultravnc viewer)
-sc_exit
*Server quit when viewer disconnect
*Don't exit when desktop switch to UAC/winlogon
-settings
Internal used to be able to save to ultravnc.ini.
On >= Windows Vista, the program folder is a protected folder and require elevated permission.
ultravnc.ini is first saved in a temp folder, then this file is red and data is copied
to the real ultravnc.ini in program files.
-securityeditor
Start the acl editor for mslogon II
SERVICE
-service
Internal switch used by uvnc_service to tell winvnc is started by a service
-service_run
Internal used for the special service_commandline option in ultravnc.ini.
-stopservice
Stop winvnc service
-startservice
Stop winvnc as application and restart winvnc as service
-install
Install the service, require admin (<= Windows XP) or elevated access (>= Windows Vista)
-uninstall
Uninstall the service, require admin (<= Windows XP) or elevated access ( >= Windows Vista)
-uninstallhelper
-installhelper
-startservicehelper
-stopservicehelper
-securityeditorhelper
-settingshelper
Internal used by winvnc. The helpers are needed to simulate the current console user ( Service run as system). The start winvnc with the corresponding command line without "helper" with the "runas" option.
Sample winvnc (press install service) -->create process as current user
winvnc -installhelper
winvnc -installhelper -> start winvnc -install with (shellexec "runas" option)
-multi :
don't check if winvnc is already running