I'm getting the following error:
"Get-VMHost : Cannot validate argument on parameter 'Name'. The argument is null
or empty. Supply an argument that is not null or empty and then try the comman
d again.
At Test\ESX\Get-ESX-DS.ps1:17 char:42
+ import-csv hosts.csv | %{get-vmhost -name <<<< $_.name} | get-datastore | ex
port-csv ESX-Datastore.csv -notypeinformation -useculture
+ CategoryInfo : InvalidData: (:) [Get-VMHost], ParameterBindingV
alidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,VMware.VimAutom
ation.ViCore.Cmdlets.Commands.
GetVMHost"