We have multiple LPR queues on multiple NT 4 servers. Occasionally, I get requests to purge the print jobs from the queue. It would be nice to have a script running that checks for stuck print queues via ADSI about once every 15 minutes. Unfortunately, I am unsure how to pull the data "Printer busy or error" that is on the print job when it is "stuck" in the queue. I tried checking the status of the print job with ADSI, but I get back "16" which translates to "Printing". I have been unable to retreive the information "Printing - Printer Busy or Error"..

I suppose I have lazy admin-itis. I would just like to have "stuck" queues automatically cleared, and be emailed if the ip for the LPR printer cannot be pinged. Any ideas?

Brian