You're only getting the count from the that folder, not including the child folders and their vms. You'll have to loop all the childEntities, if it's a folder, then you recurse down and count all VMs to get your total count.
↧
You're only getting the count from the that folder, not including the child folders and their vms. You'll have to loop all the childEntities, if it's a folder, then you recurse down and count all VMs to get your total count.