RvdNieuwendijk
Leadership
Leadership

Which PowerCLI version are you using? Do a: Get-PowerCLIVersion

The latest version at this moment is "VMware vSphere PowerCLI 5.1 Release 2 build 1012425". If you don't have this version, try to download and install it and run the script again.

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition