Not abel to get ProvisionedSize and UsedSize of VMs

PowerShell script exchange

Not abel to get ProvisionedSize and UsedSize of VMs

Veeam Logoby Aggi » Tue Jan 21, 2014 4:40 pm

Hi all,

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
Add-PSSnapin "VeeamPSSnapIn"
$HostsAndVMs=Find-VBRHvEntity -HostsAndVMs
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 ?
Aggi
Service Provider
 
Posts: 2
Liked: never
Joined: Thu Sep 20, 2012 11:22 am
Full Name: Agnar Arason

Re: Not abel to get ProvisionedSize and UsedSize of VMs

Veeam Logoby v.Eremin » Thu Jan 23, 2014 11:43 am

You're doing nothing wrong. This seems to be a bug. So, thank you for pointing this out; much appreciated.
v.Eremin
Veeam Software
 
Posts: 13255
Liked: 968 times
Joined: Fri Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin


Return to PowerShell



Who is online

Users browsing this forum: No registered users and 5 guests