VMware Cloud Community
VMrOxALL
Contributor
Contributor

Can't connect using Connect-VIServer with port number in PowerCLI

I'm new to PowerCLI and for the first time I'm trying to connect to the vCenter, but I get the error below.  Our vCenter uses port 444 to connect, but I get the following error message when I enter the command: Connect-VIServer -server moxsec01:444.  I turned off the Poxy from this command but still having issues: Set-PowerCLIConfiguration -ProxyPolicy NoProxy -Confirm.

The vCenter is version 4.0 and I'm using PowerCLI4.1.

PowerCLI_Can't Connect to vCenter.png

Can someone shed some light and tell me why it's not working or what I'm doing wrong?

~Jeremy

0 Kudos
1 Reply
VMrOxALL
Contributor
Contributor

Nevermind I have figured it out.  I'm not supposed to use the :444.  Instead I use -port 444 in the command.

0 Kudos