I mentioned in a previous post (VMware View inside vCloud Director) that we had to make a last minute change to the lab content on the fly. This change was to Exercise 11 that covers the Get-ESXCli cmdlet. I should mention that this is a change to ESXi — if you are using PowerCLI 5.0 to access a 4.1 host, you will need to use the 4.1 methods.
After connecting to the ESXi hosts directly with connect-viserver, we get the ESXCli and assign it to a variable:
$esxcli = Get-ESXCli
The changes apply to how you access virtual machine information.
# ESXi 4.1: $esxcli.vms.vm.list() # ESXi 5.0: $esxcli.vm.process.list()
As you can see the root element for the VM namespace has changed as well as the child namespace. This has been updated in the lab and should be corrected for the next show.