diff --git a/gns3server/controller/gns3vm/hyperv_gns3_vm.py b/gns3server/controller/gns3vm/hyperv_gns3_vm.py index 5cc80f2e..b6c7a1d7 100644 --- a/gns3server/controller/gns3vm/hyperv_gns3_vm.py +++ b/gns3server/controller/gns3vm/hyperv_gns3_vm.py @@ -182,8 +182,8 @@ class HyperVGNS3VM(BaseGNS3VM): vms = [] try: - for vm in self._conn.Msvm_ComputerSystem(): - if vm.Caption == "Virtual Machine": + for vm in self._conn.Msvm_VirtualSystemSettingData(): + if vm.VirtualSystemType == "Microsoft:Hyper-V:System:Realized": vms.append({"vmname": vm.ElementName}) except wmi.x_wmi as e: raise GNS3VMError("Could not list Hyper-V VMs: {}".format(e))