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