What's the update?
Join Vembu Microsoft Ignite 2018 BOOTH #545 September 24–28, 2018 | Orlando, Florida. Register Now and Get a chance to win a Amazon Fire TV Cube       |        All inclusive BC/DR plan with Vembu BDR Suite 4.0 , Register now for the Webinar and understand What’s under the hood with V 4.0       |       

Connect vCenter or ESXi Host From vSphere Power CLI

Connect vCenter or ESXi Host From vSphere Power CLI

> Connect-VIServer  “vCenter Name / IP ”    

It will ask for user name and password to access vCenter  , or alternate we can add username and password to same line .
Use the below basic commands
> Get-Esx “ESx hostname/ IP ”  

You have to  type in the credential box that pops up when the credentials  parameters are omitted.

Figure 8

> Connect-VIServer  “vCenter Name / IP ”  -user “username”  -password “password “