Hallo,
my name is Ricardo and first: Sorry for my Bad English i am from Germany
I would like to write a Tool in Powershell, which one saves the Used Disk Size, all Machines are in Thin Provision, from VMs and Templates.
Now my Problem:
It is easy to get the Used Disk from "normal" VMs, but if i would like to get the Used Disk from Templates, i only get the Maximum Disk on the LUN.
My Plan B was, to look on the Databrowse of the LUN but it is the same Problem.
Have the Community any Idee why you can see the Used Disk in the Web Client and the C# Client but not with PowerCLI ?
Thank you in advance !
Ricardo
You can find that info like this
$templateName = 'MyTemplate'
$tp = Get-Template -Name $templateName
$tp.ExtensionData.Storage.PerDatastoreUsage
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
You can find that info like this
$templateName = 'MyTemplate'
$tp = Get-Template -Name $templateName
$tp.ExtensionData.Storage.PerDatastoreUsage
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thank you every much LucD