Duplicate cmdb_print_queue_instance records created each time the "Windows - Printers" sensor run. 

Steps to Reproduce


01) Discover a windows server that has multiple Win32_TCPIPPrinterPort with same Name


  1. Delete duplicate cmdb_print_queue_instance records
  2. Navigate to sensor
  3. Update query in findPrintQueue() to use both name and addr, final function version as follows

    findPrintQueue: function(name, addr) {
    var gr = new GlideRecord("cmdb_ci_print_queue");
    gr.addQuery("ip_address", addr);
    // Following line added:
    gr.addQuery("name", name);
    if (! {
    gr.setValue("name", name);
    gr.setValue("ip_address", addr);

    return gr.sys_id;

Related Problem: PRB1340775

Seen In

There is no data to report.

Intended Fix Version


Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-05-21 11:43:23