Comment

This is most likely an indicator that your credentials are incorrect. That's the reason for getting a 403 HTTP error.

This scipt has been tested against ESXi 4.1, with positive results.