Change VNC password

avatar

Hi

I'm doing a command-line macro/script/tool to change VNC passwords.
The syntax is as follows:

c:\tools\VNCPassword.exe /host:$IP$ /Password:"{1}" /namode:true

The {1} is defined as type secured, and in execution mode "Run as administrator" and "Shell execute" are enabled.
"Allow run via agent" and "Allow batch execute" are enabled too, but the whole thing fails with error:

"Unable to execute the application: "C:\tools\VNCPassword.exe"

Tested with different paths (copying VNCPassword.exe in c:\windows\system32) with same result.

The same command executed directly on cmd runs and founds the .exe path without problems.

Some idea why is not functioning this command?

Thank you

Best regards

All Comments (8)

avatar

Hi,
Do you have RDM or the Agent installed on the destination host?

David Hervieux

avatar

There are different destination hosts, some of them have RDM but mostly not.

Thank you

avatar

Just to be sure you have the Agent installed if you don't have RDM installed on the destination? Do you explicitely use the action Execute via Agent?

http://help.remotedesktopmanager.com/tools_rdmagent.htm?zoom_highlightsub=agent

David Hervieux

avatar

I think that this action does not need to be executed via the agent, so unchecked the "Allow run via agent" box to test.
The issue seems to be related with the VNCPassword path, called directly or with quotes does not recognize it, but launching from cmd it works ok.

It may be a bug?

Thank you

avatar

Could you export me your macro script and I will verify it?

Regards

David Hervieux

avatar

Hello,

In the command-line entry, in the parameters tab, there should be a button for "view command" which will show you what is sent to execute. Could you see what it outputs and try to execute the exact same thing from the windows cmd? (you can copy what is outputted by pressing ctrl-c with the focus on the output window)
We've been unable to reproduce the issue on our end, it looks like something isn't passed properly to the executable but I'm not sure what.

Regards

Hubert Mireault

avatar

Hi Hubert

The view command button shows:
c:\tools\VNCPassword.exe /host:$IP$ /Password:"password" /namode:true

Executing it from cmd (substituting $IP$ with a valid IP) executes ok (vnc password does not change, but this seems related to DEP or UAC on remote PC, it's a different issue not related to RDM), but the main difference from executing from RDM is that the VNCPassword.exe binary is not found from RDM, while from cmd founds it fine.
The error from RDM is:

"Unable to execute the application: "C:\tools\VNCPassword.exe"

Thank you

avatar

With recent update seems to be solved.


Thank you for your time