?
Solved

Get list of available local and network printers for printer setup in intranet...

Posted on 2007-10-16
8
Medium Priority
?
1,987 Views
Last Modified: 2013-11-23
As succinctly as I can...  I need SOME way to build a list of all available printers, both local and network, the name and UNC and/or IP for each, for the machine running the 'intranet'.  The system is internal and security isn't really an issue.

If a java applet will do this, which I feel that one could, can anyone suggest to me how to go about writing it.  I'm not quite UP to the level of  inexperienced.  I am pretty good at taking a seed and 'growing' it into what I need, but the seed here is the holy grail...

For the record, the best solution I have come up with so far is a batch file.  I figured, worst possible case, I could use a batch file to build a list and parse the list into a database upon instantiation of the 'intranet'.  This is ugly and static and doesn't at all account for printers not yet set up or what have you.  I also have a simple printer setup screen, allowing for input of the printer UNC or IP manually, but that is ugly and as non-user friedly as could be.  Still can't believe this is an issue not solved thousands of 'intranets' ago...

Anyone offer a better solution? Surely there is a way to use an applet to get a 'LIVE' list to feed a setup screen dropdown?!  Little help?  Any and all help with this matter will be very much appreciated...
0
Comment
Question by:owenparker
  • 4
  • 3
7 Comments
 
LVL 8

Expert Comment

by:davecorun
ID: 20116719
If you 'don't need a java app, take a look at the TechNet Script Center.

http://www.microsoft.com/technet/scriptcenter/default.mspx

The template you're looking for will almost definitely be there.

// Dave
0
 

Author Comment

by:owenparker
ID: 20119224
Not sure how to tie this in, but I'm workin' on it.  I'll mark it off as solv ed I guess, if i can find a way to do so...  Thanx for the suggestion Dave...l
0
 

Author Comment

by:owenparker
ID: 20119426
Batch file is the same thing really and works much better.  Only script i found listed printer names but not IP or UNC which is ultimately useless.  I was really sure there MUST be an existing applet out there but I can't find one and I can ALWAYS find one.  
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 8

Accepted Solution

by:
davecorun earned 2000 total points
ID: 20119503
The printer IP or UNC is available from WMI (Windows Management Instrumentation).  You'll see it at the link I posted above.

WMI can be used to gather almost any data about a pc.

There are some things dos-based batch files can't do, for the rest there is WMI.
0
 
LVL 8

Expert Comment

by:davecorun
ID: 20119508
This is assuming of course you have a Windows network and that your print servers are Windows machines or can at least talk in WMI.
0
 

Author Comment

by:owenparker
ID: 20147656
A lot of IFs in trying to find some sort of solution.   Thanx for the pointer...  Looked at WMI and it will do the same as the batch file and will definitely return more data, all of which is basically unimportant.  I will look at it more closely to see if I missed something that might make it better than a simple batch file...
0
 

Author Comment

by:owenparker
ID: 21016208
Please don't delete.  There is some info here that may prove to be useful to someone someday...
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
The viewer will learn how to count occurrences of each item in an array.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

850 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