I am trying to get used size of the VMs that are backed up with VBR. To do that I made the following:
- Code: Select all
foreach($VM in $HostsAndVMs)
$vm.Name + " "+ $vm.Usedsize
but usedsize always returns 0. The same for the ProvisionedSize property.
All the other properties(Host,Type,Reference,Id,Name,Path,VmHostName,PowerState,GuestInfo,ConnHostId) of the object are returned normally.
Am I doing somthing wrong ?
Is there another way to get this informations ?