I do understand that but I just don't know where to go.
the addprinterconnection function in WMI is not what I need... that will only work for shared printers on the network but I am looking for an IP Based printer.
so a printer maybe connected to a DHCP server which issues it an IP Address. Like in Windows/Add new printer, you can add a TCP/IP based printer. I can create the port fine but how do I then add the IP printer ?