Re: Configure Windows TightVNC-Server with configuration file instead of registry keys
Stanislav Kogan <[email protected]> Wed, 13 Apr 2022 14:29:34 +0000
| Newsgroups | gmane.network.tight-vnc.general |
|---|---|
| Message-ID | <20220413142934.Horde.ycGkR5CuhuwpC8RD8z3V2El@horde.m3touchinc.com> |
Correct me if I'm wrong, but I don't really see a way to run multiple VNC servers under Windows. There is, after all, only one physical screen, right? ;) Quoting Thorsten Südbrock <[email protected]>: > Thanks for the reply! Maybe I should have described my scenario more > thoroughly.I am not afraid of the registry, but of its limitations. > > I do not want to use the registry, because there can only be one > value for a setting at a given time. I have a machine, where I would > like to start multiple TightVNC-Servers with different configurations. > > Let us say, the user is already running a TightVNC server with > specific settings (port number and so on) - those are stored in the > registry. I have a program that should start a new TightVNC server > process on a different port and with different settings. To do this > I would need to overwrite the settings in the registry for this user > account and restore them after my program is finished. This seems to > be an akward solution, e.g. when my program crashes and does not > restore the previous settings the user wonders who changed his > configuration. > > So I would rather like to read the configuration options for port > and permissions (view / change) from a different file or provide > them via command line arguments. I did not find any documentation on > this and wonder if this is possible. > > > Another possibility would be, if I could point the TightVNC server > instance to a specific registry hive which I create for my program. > So the configuration would still be stored in the registry - just as > a different "profile" in a different location. Is this possible with > some undocumented switch? > > > On 13.04.22 14:37, Stanislav Kogan wrote: >> Hi. >> >> The registry (HKLM or HKCU) is actually much easier to configure >> than it seems. Check this out: >> >> https://blog.securestrux.com/applying-configuration-with-microsofts-lgpo-utility This utility is actually not only for applying GPO, but any registry >> entries. >> >> >> Quoting Thorsten Südbrock <[email protected]>: >> >>> Hi there, >>> >>> I wonder if there is any way (or plan) to make the TightVNC-Server >>> for Windows systems configurable via a configuration file - >>> something like a "server.ini". If I understand the documentation >>> correctly, on Windows systems all configuration options are stored >>> in the Registry. >>> >>> Either in the HKLM tree - for the system wide service. Or in the >>> HKCU tree - for a server process started by a user. >>> >>> >>> I know there are some command line options (documented here: >>> https://www.tightvnc.com/doc/win/TightVNC_2.7_for_Windows_Server_Command-Line_Options.pdf), but all changes are still save to the >>> registry. >>> >>> I found a feature request from 2017, but I do not see any >>> indication if this is on the roadmap for a release >>> (https://sourceforge.net/p/vnc-tight/feature-requests/727/). There >>> is a mentioning of a "beta" version with this feature, yet I do >>> not know where to find this "beta". Do I have to compile a current >>> working branch myself to get this "beta" version? >>> >>> >>> My goal is to start a TightVNC-Server from the command line and >>> configure it completely *without* using registry keys. I want to >>> set the port, password, mode and so on. Is something like this >>> possible? >>> >>> Any help is be appreciated, thank you for your efforts! >>> >>> >>> -- >>> PerFact Signatur >>> >>> With best regards >>> >>> Thorsten Südbrock >> >> >> -- Stanislav Kogan System Administrator, M3Touch Inc. <*> eMail: [email protected] ___________________________________________________________ TightVNC mailing list, [email protected] To change your subscription or to UNSUBSCRIBE, please visit https://lists.sourceforge.net/lists/listinfo/vnc-tight-list