Which PowerCLI version are you using ? Do a
Get-PowerCLIVersion
Btw, just tested this in a vSphere 5 environment and the script seems to work there.
Which PowerCLI version are you using ? Do a
Get-PowerCLIVersion
Btw, just tested this in a vSphere 5 environment and the script seems to work there.