Brad Moroney wrote:
Thomasz,

I went through the same question the other day and came up with the
following solution.

I wrote a script in AutoIt containing the following registry changes:
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3\Default", "Password",
"REG_BINARY", "<password in hex>")
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3\Default",
"PasswordViewOnly", "REG_BINARY", "<password in hex>")

For someone else: replace <password in hex> with values from regedit (but without spaces).


To get the REG_BINARY password from the registry, install it on a clean
PC, set the password when you start the service, extract the encoded VNC
password from the
HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3\Default\Password entry, remove
the spaces from the password when you put it in the AutoIt script and
your there!

I compiled this to an AutoIt executable file so I could execute it later.

I modified the tightvnc.bat file in the install\scripts directory to read
todo.pl  "%Z%\packages\tightreg.exe"
todo.pl "%Z%\packages\tightvnc-1.2.9-setup.exe /silent"
"\"%ProgramFiles%\TightVNC\WinVNC.exe\" -install" "startup-type.pl
automatic winvnc"

This will set the VNC Server service to start automatically when Windows
boots.  I figured since the last process is to bounce the machine it
wouldn't be a problem :)

OK, thanks, had to install AutoIt3 to do it, but at least I learned something new, too :)


Tomek


------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ unattended-info mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to