You are the administrator of a large vSphere environment for which management automation is extremely important. You use PowerCLI to create detailed reports containing information that is not readily available in the vSphere Client. You want to begin by using PowerCLI to display information on all ESXi hosts and VMs.
Use PowerCLI to perform each of the following tasks:
To accomplish this task, the administrator can perform the following steps:
Connect-VIServer vcenter-01.lab.local
Get-VMHost
Get-VM