Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

Inventory for installed printer (printserver)

Hello,

we're changed our printers and are using now printers via a printserver. I was wondering if there is a way to get this inventoried, because now it doesn't see those printers.

 

Jvuz

19

Comments

7 comments
Date Votes
  • I too would like to see what printers, fax and other devices listed.

    0
  • I would like to know also.

    0
  • 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
  • Same as original poster, been searching for a script to do this, but having it available via a custom scan would be great!!

    0
  • 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
  • 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
  • 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