How to detect printers on the network that aren't installed

Posted on 2005-05-10
Last Modified: 2013-11-13
How can I have my software detect the existence (and IP address) of each network printer on my network, regardless of whether a queue for that printer is installed on my workstation?

Do network printers broadcast some message to advertise their existence, or is there a Windows API that can be used to help with this detection? (Much like Network Neighborhood can detect some printers that are on the network.)

Question by:bsdex
    1 Comment
    LVL 4

    Accepted Solution

    i'm not sure about this...

    but i would believe running "net view " on the shell command through your software would help...
    if u write the output to a file and read the file for the name...

    if the printer is connected to the server instead, u could go ahead and run "net view \\servername > test.txt" on the shell command
    and read test.txt for type = print...


    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    One of the most frequently asked questions on EE in the "Windows Installer" zone is how to eliminate self-triggered installation of some product.  The problem occurs when, suddenly, whenever a certain application is launched, or even when a folder i…
    A short article about problems I had with the new location API and permissions in Marshmallow
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now