working with vnc viewer in command-line

Dear everybody!

I encrypted my password using vncpasswd.exe and saved it to a file. when I use vncviewer.exe -UserName user -passwd "passfile", it gives the error message "either the username was not recognized or the password was incorrect". Could you kindly tell me how I can fix this?

Regards,
Ali

1

Comments

2 comments
  • I don't think the -passwd option works anymore, but what you can do instead is created a "configuration file" with the password in. For example, create a file called MyConnection.vnc in Notepad or similar and save it to the desktop. Add the lines:

    Host=192.168.1.10
    Username=username
    Password=myencryptedpassword

    replacing my example options with your own. Then at the command line, run:

    vncviewer.exe C:\Users\User\Desktop\MyConnection.vnc

     

    0
    Comment actions Permalink
  • Hi Jack,

     When I tried the above solution i am getting unknown connection string.

    My vnc viewer version : 6.22.315.46706.

    Could anyone help me to launch vnc viewer with command line arguments. But I don't want to enter vnc server credentials in prompt. I want to pass that the credentials as command line args.

    1
    Comment actions Permalink

Please sign in to leave a comment.

Didn't find what you were looking for?

New post