PowerCLI-Example-Scripts icon indicating copy to clipboard operation
PowerCLI-Example-Scripts copied to clipboard

Find-HVMachine and FindHVMachineSummary not working with empty pools?

Open MarkoKastner84 opened this issue 4 years ago • 0 comments

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

MarkoKastner84 avatar Jul 02 '21 13:07 MarkoKastner84