Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://twitter.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Setting password via command line

Here you will find help for frequently asked questions as well as for your specific question
Post Reply
Fwacer
Posts: 2
Joined: 2022-01-19 06:17

Setting password via command line

Post by Fwacer »

Hello,

I'm trying to set the password for a UltraVNC server without using the system tray menu. (Want to automate installation)
I tried using uvnc_settings.exe and setting the password under the Security tab, but it doesn't seem to actually apply the password.
I tried using createpassword.exe per this post from Rudi using

Code: Select all

createpassword -secure mypassword
, and I tried

Code: Select all

createpassword mypassword
. Neither seemed to work.
I also tried using setpasswd.exe but didn't get anywhere.

Am I going about this the wrong way?

Cheers
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6838
Joined: 2004-04-23 10:21
Contact:

Re: Setting password via command line

Post by Rudi De Vos »

createpassword [-secure] mypassword
Need to be executed in the ultravnc.ini folder
1) set secure to 1
2) set secure password

Warning: code differ on 32/64bit.
You need to use 64bit when winvnc.exe is 64bit

http://www.uvnc.eu/download/133/createpassword.zip

A secure password is not portable. The encryption differ on each host.

Do you have write access ? If you use the default folder "program files" runas admin is needed to be able to write to the ini file.

Please test first in a temp folder, after running the tool, the ultravnc.ini file should contain a password.

For an automated install you can also create the ultravnc.ini on your local pc.
pushing it remote is just overwriting the remote ultravnc.ini with your local.
This doesn't work with the secure password
Fwacer
Posts: 2
Joined: 2022-01-19 06:17

Re: Setting password via command line

Post by Fwacer »

Hi Rudi, thanks for the response.

Sorry, I don't understand your instructions. Let me ask a few questions to clarify
  1. Where is the ultravnc.ini folder? I don't see this folder under "C:\Program Files\uvnc bvba\UltraVNC".
  2. How do I set secure to 1? Would I type something like "createpassword -secure 1 mypassword" ?
  3. I don't understand what you mean by the password not being portable. What does portable mean?
  4. Yes, I ran them as admin.
Post Reply