Please note that this document only applies to WinVNC 3 and it's varients. The passwors produced by VncEnc do not work on RealVNC 4 or higher.
VncEnc allows you to encode a password for the machine.ini file from the command line. This allows you to make rapid changes to machine.ini quickly and easily.
Download a copy of VncEnc
by Mauro Castaldi
(Mauro's email is k astaldi at hotmail com without the spacing and the dots
in the right places <w>).
Here I've specified that VncEnc will encrypt the word "password". (Obviously this is a bad choice, but this is only a demo).
D:\Downloads>vncenc.exe password
\registry\machine\software\orl\winvnc3\default Password = REG_BINARY 0x00000008 0xfd3cd8db 0x58147a72
Now I can copy the text into machine.ini or if I wanted to be clever I could pipe the results into a text file using:
D:\Downloads>vncenc.exe password > d:\fastpush\password.ini
Sysworksoft have released a tool called VNCPWD that can reset a VNC password remotely. This works more elegantly than using PSEXEC and VNCENC. Full instructions and the program can be found on their website.