There are a few other posts (e.g. Remotely set VNC service password ) on that subject but they are narrow to one specific VNC software/version.
I have a situation whereby I have about 500 PCs on a Windows Domain and they are setup with a mix of VNC versions - RealVNC4, UltraVNC, TightVNC, and each of different versions.
So some use an ini file (like most recent version of UltraVNC), some use Registry and they use different section of the registry.
Anyone knows of a script/tool that will just try all options and set the password?
No such tool exists.
And before you run off and try to write a script yourself to do something monumentally silly (like trying a bunch of different credentials on 500 VNC servers and reporting the results back), the only solution to this that isn't going to be ridiculously painful or involve a bunch of manual work is below.
This is going to be vastly better than trying to deal with multiple VNC server vendors in multiple configurations, and should even be relatively easy to manage, compared to what you have now, which I wouldn't even try to deal with. You're definitely in a situation where it's going to be vastly easier to build right from scratch than repair.
For the record, below is the script which I used to disable VNC on all computers (ran the script for all computers on the domain):
That requires Sysinternals and UnixTools.