PS C:\> Get-Harddisk -VM $vm
Works fine. Returns the disks for $vm.
PS C:\> cd vmstore:\mydatacenter\datastore1
PS vmstore:\mydatacenter\datastore1> Get-Harddisk -VM $vm
Returns the disks for $vm and also all disks on datastore1.
I have created an internal issue regarding this. Thank you very much for reporting it.
View solution in original post
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference