kilbride98
Contributor
Contributor

Issue with Connect-VIServer

Hi

I am quite new to this and am trying to use Powershell to access my ESXi server.

I have ran Connect-ViServer -Server ip-address -Protocol https -User Admin - Password xxxx

but i keep being told there is an issue with the protocol "Could not connect using requested protocol"

I have also tried http also to no avail.

Any suggestions would be appreciated.

Thanks

Tags (1)
0 Kudos
2 Replies
kilbride98
Contributor
Contributor

This was actually a proxy setting that was causing this issue. Once proxy removed the error stopped.

0 Kudos
ykalchev
VMware Employee
VMware Employee

You can also look at Set-PowerCLIConfiguration cmdlet. It allows you to configure PowerCLI to use or not the system proxy.

Regards,

Yasen Kalchev

PowerCLI Dev Team

Message was edited by: ykalchev

Yasen Kalchev, vSM Dev Team
0 Kudos