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

0

Comments

1 comment
  • 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

Please sign in to leave a comment.

Didn't find what you were looking for?

New post