Connect-VIServerIT technician command center
VMware · PowerCLI and ESXi

Connect-VIServer

Connect PowerCLI to vCenter Server.

Copy-ready commandConnect-VIServer
Connect-VIServer vcenter.contoso.com

Requirements and permissions

Requirements
VMware PowerCLI or ESXi shell
Permissions
vCenter or ESXi permissions vary
Last reviewed
2026-07-31

Examples

Basic example

Connect PowerCLI to vCenter Server.

Connect-VIServer vcenter.contoso.com

Common errors

Command not found

Confirm VMware PowerCLI or ESXi shell is installed and available in your current shell.