vmware / PowerCLI-Example-Scripts

http://blogs.vmware.com/powercli
Other
753 stars 603 forks source link

Find-HVMachine and FindHVMachineSummary not working with empty pools? #466

Open MarkoKastner84 opened 3 years ago

MarkoKastner84 commented 3 years ago

Hello,

since we have some empty pools in our 400pool+, 10k+ user environment (due to some POC-Projects) we cant run Find-HVMachine or Find-HVMachinesummary anymore. (to get a list of all machines)

It looks like they can not cope with empty pools. Could that be fixed? (like ignore empty pools by default, but not raise an error and respond with all clients that were found)

The error that occurs is:

Find-HVMachine : Exception calling "QueryService_GetNext" with "2" argument(s): "There is an error in the XML document." At C:\Program Files\WindowsPowerShell\Modules\VMware.Hv.Helper\VMware.HV.Helper.psm1:7707 char:18