?
Solved

Need a script to check networked printer status.

Posted on 2007-07-25
14
Medium Priority
?
1,477 Views
Last Modified: 2013-12-15
Hi there,

I dont know if this can be done or not. Basically in our company we have only HP printers which all have printer status pages when you type in the IP address into internet explorer. What i would like to do is list the printers on the local intranet and display next to each the current status. so it would look something like....

HP 4650 - Colour                          Printing
HP 3700 - Colour                          Ready/Idle

Is there a way to do this??

Thanks,
Stewart
0
Comment
Question by:stewart_A
  • 10
  • 4
14 Comments
 
LVL 12

Expert Comment

by:zoofan
ID: 19564161
Pretty much everyting under the sun for scripting with printers here.

http://www.activexperts.com/activmonitor/windowsmanagement/adminscripts/printing/servers/


zf
0
 
LVL 12

Accepted Solution

by:
zoofan earned 2000 total points
ID: 19564171
Also "Display print queue status (VBScript)"

http://techtasks.com/code/viewbookcode/204


zf
0
 
LVL 12

Expert Comment

by:zoofan
ID: 19564180
One more for good mesure,

If your printer is on a print server(not a stand alone jet direct)

http://www.computerperformance.co.uk/vbscript/wmi_printer.htm

zf
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 3

Author Comment

by:stewart_A
ID: 19564290
Hi there Zoofan,

Thanks for the speedy reply, using VBScript is ideally the way i would like to go although how would i implement the code shown in your second answer there.

I copied and saved it into the server directory and called it printer.asp but it doesnt work.

Help :(

Stewart
0
 
LVL 12

Expert Comment

by:zoofan
ID: 19564353
I dont mean to sound off, but make sure you have file extensions showinf when you rename file ext.  other wise windows will append it with ie printer.vbs.txt

also the file extension for vbscript is vbs  not asp


zf
0
 
LVL 12

Expert Comment

by:zoofan
ID: 19564358
Renaming the file with the correct extension should allow you to run it.

"printer.asp"

should be printer.vbs

zf
0
 
LVL 12

Expert Comment

by:zoofan
ID: 19564905
Did that get you running?

zf
0
 
LVL 3

Author Comment

by:stewart_A
ID: 19564953
no i'm afriad not, when i try to run it it comes up with an error saying....

Object Doesn't support this property or method: 'objPrinter.Status'
0
 
LVL 12

Expert Comment

by:zoofan
ID: 19564996
From script #2
"Display print queue status (VBScript)"

You did modify

Set objPrinter = GetObject("WinNT://DC1/stores_hp4000")

to your domain and printer?  and realize this is for a server sharing a printer not a jetdirect printer.


zf
0
 
LVL 3

Author Comment

by:stewart_A
ID: 19565169
Ah i see, yes i did that only i just put the name of the printer in there and the domain. The Printers are networked however they dont have a server that i know of they are just configured for use on the network then plugged in so to speak. We connect to them using a local TCP/IP connection.

0
 
LVL 12

Expert Comment

by:zoofan
ID: 19565283
Actually though if you have these printers installed at the PC your working on relpace the
Set objPrinter = GetObject("WinNT://DC1/stores_hp4000")  with your PCname and Local printer name it should still work.  Will also look into accessing the printer directly but need to step out for bit.


zf
0
 
LVL 12

Expert Comment

by:zoofan
ID: 19585484
Did you get this doing what you need it too?

zf
0
 
LVL 3

Author Comment

by:stewart_A
ID: 19587562
After a bit of head scratching i have got this pretty much working just needs some final tweaks and it should be running great!

Thanks for your comments!
0
 
LVL 12

Expert Comment

by:zoofan
ID: 19587564
Glad you got it going, was wondering if you needed help with it.

cheers

zf
0

Featured Post

Industry Leaders: 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!

Question has a verified solution.

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

Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Suggested Courses
Course of the Month16 days, 1 hour left to enroll

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