I looking for possibility to change every password in TightVNC from command line. Every hosts have Windows 10, so I wanna create bat script to change Admin and Primary passwords.
Asked
Active
Viewed 7,588 times
1 Answers
1
It can look like this:
tvnserver.exe -stop
reg add "HKLM\SOFTWARE\TightVNC\Server" /v Password /t REG_BINARY /d F0E43164F6C2E373 /f
reg add "HKLM\SOFTWARE\TightVNC\Server" /v UseVncAuthentication /t REG_DWORD /d 0x1 /f
tvnserver.exe -start
-
1what is F0E43164F6C2E373 representing here? – Firesh Jun 14 '21 at 07:56
-
@Firesh that's the password `12345678` encrypted using a hardcoded DES key (which is hardcoded in the TightVNC source code). Easiest approach may be to use TightVNC config tool to set the password to what you want, then copy the encrypted value from the registry, then you can set it using the command line on another machine. – Simon Kissane Dec 03 '22 at 02:21
-
@SimonKissane - thank you for the explanation! appreciate it. – Firesh Dec 04 '22 at 03:05