ovftool syntax and escaping special characters

Share This:

Came across an issue (what are the odds for that ?) where my password did not go along with ovftool syntax.

The syntax is vi://username:password@vcserveraddress

You could see having @ is a problem, as well as ad account having ‘ad\’ , found this blog by Steve Flanders which allow me to bypass this issue


Modified script in order to escape the special characters:

OLD script (doesn’t work)


Modified script (excluding LDAP part which remains the same):

Hope it helps.

Leave a comment

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.