Using PowerCLI to Manage Hosts and Virtual Machines
VMware vSphere PowerCLI contains snap-ins and modules based on Microsoft PowerShell for automating vSphere and vCloud Director administration. PowerCLI provides C# and PowerShell interfaces to vSphere and other VMware product administration.
vSphere PowerCLI is based on Microsoft PowerShell and uses the PowerShell basic syntax and concepts. Microsoft PowerShell is both a command-line and scripting environment, designed for Windows. It uses the .NET object model and provides administrators with system administration and automation capabilities. To work with PowerShell, you run commands, which are called cmdlets.
PowerShell supports features such as pipelines, wildcards, and easy access to command-line help.
You can use ESXCLI commands from the vSphere PowerCLI console, as follows:
See the vSphere PowerCLI User’s Guide in the vSphere documentation center.