Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

WMI calls for Printer Tray information?

$
0
0

Greetings,

I am doing a print server rebuild to move our printers from a 2003 server to a 2012R2 server.  Please keep in mind that this is not technically a migration since we are not porting over drivers.  We are replacing all printer drivers with the latest Universal driver for each manufacturer (HP, Konica-Minolta, Kyocera, Lexmark, etc ...).  The print servers will have approximately 1,500 printers on each.  For reasons I won't get into they cannot be split up.  These print servers handle all printing for a broad use application.  Our process for adding these print servers to the application uses a specialized *.exe file that when run does some type of WMI call or other query to get the printertray information and an associated BIN number from the driver/printer, problem is that it can only handle 1 printer at a time and takes several minutes for each one in order to complete.  But I don't know how & I am having difficulty coming up with a WMI query that I can run to gather that data, which will then be fed into an SQL database.  I'm not worried about the SQL part, someone else will do that.  What I need is to be able to gather the tray or paper source information from each printer.

Any assistance appreciated.


# When I wrote this script only God & I knew what I was doing. # Now, only God Knows! don't retire technet http://social.technet.microsoft.com/Forums/en-US/e5d501af-d4ea-4c0f-97c0-dfcef0192888/dont-retire-technet?forum=tnfeedback



Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>