We use Citrix for our Terminal Services here and our virtual printers are inventoried and clutter up the search results and printer stats. Looking through admin_pc_add_2.php it looks like this is not intentional.
Citrix maps printers like this "PrinterName on ServerName (from ClientName) in session 4" with a port name of CLIENT. To handle this I've added an "in session" port_name filter to insert_printer in admin_pc_add_2.php. For completeness I've also added a port_name filter for "CLIENT".
[code] if ((strpos($printer_caption,'PDF') !== false) OR (strpos($printer_caption,'__') !== false) OR (strpos($printer_caption,'in session') !== false) OR (strpos($printer_caption,'Microsoft') !== false)){ [/code]
[code] if (($printer_system_name == $system_name) AND ($printer_port_name !== "FILE:") AND ($printer_port_name !== "MSFAX:") AND ($printer_port_name !== "SHRFAX:") AND ($printer_port_name !== "BIPORT") AND ($printer_port_name !== "CLIENT") AND (substr($printer_port_name,0,2) !== "TS") AND ($printer_port_name !== "SmarThruFaxPort")) {[/code]
|