The "DiscoveryHyperVSensor" script include creates or updates the hyper v server CI's. The cmdb_ci_hyper_v_server record is associated with a windows CI through the "windows_host" field. The script include queries the cmdb_ci_hyper_v_server table to find the currently discovered windows CI associated with any record. If it finds the record, it updates it or if it does not, then it creates a new record.
When there is a duplicate hyper v server CI created, check if the existing original CI has a valid windows CI in "windows_host" field.