PowerCLI-Example-Scripts
PowerCLI-Example-Scripts copied to clipboard
Find-HVMachine and FindHVMachineSummary not working with empty pools?
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