Inventory for installed printer (printserver)

Comments

7 comments

  • Bliss, Robert - HPL

    I too would like to see what printers, fax and other devices listed.

    0
    Comment actions Permalink
  • Acaruso

    I would like to know also.

    0
    Comment actions Permalink
  • Jeff Allen

    I'd like to see this feature added as well as we have users with both local and network printers and I would like to inventory both types of servers.

    0
    Comment actions Permalink
  • Dan Dillard

    Same as original poster, been searching for a script to do this, but having it available via a custom scan would be great!!

    0
    Comment actions Permalink
  • Moyer, Todd A

    Not sure this will help anyone, but if you are handy with scripting, you could possibly use this script to enumerate a text file, or custom entry in PDQi, .. This particular script is handy when you get a corrupt driver on the print server queues. It uses wmi and collects printers that are known to be on the client as a network printer, then removes them, and immediately readds them back. Modify it and see if you can make PDQ collect your client's network printer info.

    (Not responsible for anything you do or break with this code)

    ______

     

    strComputer = "."

    Set objNet = WScript.CreateObject( "WScript.Network" )

    Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")

    Set colInstalledPrinters =  objWMIService.ExecQuery _     ("Select * from Win32_Printer Where Network = TRUE")

    For Each objPrinter in colInstalledPrinters      

    objPrinter.Delete_  

    objNet.AddWindowsPrinterConnection(objPrinter.name)  

    Next

    WScript.Echo "printers installed successfully"

    WScript.Quit

     

    0
    Comment actions Permalink
  • Dan Dillard

    Todd-

     

    I think this could help me. I am thinking I would like to modify it though so that it doesn't delete and re-add printers. I would just like it to query the computer during a standard PDQi scan, enumerate the printers, and write them to a custom attribute in the computer inventory.

     

    I could see this being part of my "standard" scan for all computers, and also a custom scan that I run when troubleshooting printer issues.

    I would probably also keep your script and add it as a "tool" in cases where I would need to delete and re-add all printers.

    0
    Comment actions Permalink
  • Moyer, Todd A

    Cool. Let us know how it goes for you, and share if you can! I don't have a clue on how I could use it to scan and update a custom attribute..

    0
    Comment actions Permalink

Please sign in to leave a comment.