How can I get the virtual hard disk used and allocated size for a thin disk.
I can get the allocated size via
Get-VM -Name $vmName | Select -ExpandProperty Harddisks
But there does not seem to be a way to get the actual used space when it’s a thin disk
Many Thanks
Not sure about the command but RvTools can get this for you
Have you tried it before?
Please award points for helpful/correct answers
Hello, CFormage-
Another community member had a question like this a couple of months ago in the Find VM disks actual size thread. You should be able to use the code there to get the provisioned sizes of VMs' disks, along with their sizes on the datastores. Also, LucD has a link from there to his vdisk reporting script. One or the other (or both) should get you for what you are looking.
Enjoy.