Remotely set VNC service password

passwordrdpremote desktopvnc

After a Windows update I cannot connect to a Windows Server 2008 machine via RDP. As an alternative, I remotely installed UltraVNC using PsExec.

The WinVNC service starts successfully but when I try to connect remotely, I receive the following error message:

This server does not have a valid password enabled.
Until a password is set, incoming connections cannot be enabled.

Since I don't have desktop access to the machine, how do I set the password?

Best Answer

You can remotely set the registry key

[HKEY_LOCAL_MACHINE\SOFTWARE\RealVNC\WinVNC4] "Password"=hex:xx xx xx xx

to figure out what hex value to set you can set it on a test machine and copy the resultant value, or you could use a tool which there a many of to generate one for you

EDIT

it even looks like there is an app for this I havent tested this I have only just searched for it on google, but there are a load of results with similar promises