How can i use prnmngr.vbs to install a usb printer.

Posted on 2007-10-14
Last Modified: 2008-01-09
I need to installed some usb printers.  The pc's dont have the drivers installed. I need this process to be unattended.  I read some information about prnmngr.vbs. but i am confused. Do i need to add port first?
Question by:Phoskito
    LVL 37

    Accepted Solution

    USB printer ports are always problematical. That's why I prefer networked printers; they're far cheaper to run, too.

    I'm not sure it is possible to add a USB printer in the way you describe. However, you may be able to use a local port called "USB_Printer" as per

    Author Comment

    Networked printers are the way to go, however, this is not on option right now. I have tried to use the printui.dll but even though it installed the printer and i am able to print from it, the plug and play still wants to install the printer every time i reboot the machine. At this point i am looking for any type of script that can automate an unattended usb printer install.
    LVL 37

    Expert Comment

    I hope someone can help you, but I doubt if such a generalised script exists.

    Author Comment

    This is the solution that i researched and works best for me.

    Microsoft has a dos utility called devcon. You search for and dowload it, or you can find it in a windows 2003 cd under the I386 folder. This utility provides all of the basic funtions of devide manage. One of the funtions  allows you to update drivers for any old or new device.
    The following is the command that i used.

    devcon.exe update file.inf hardwareid

    you can find the hardwareid of the the device under the properties of the device in the device manager.
    This will install the new device, in my case my printer.

    The problem is that the printer will have the default name. ex  Hp LaserJet 2015 pcl6
    So i found a script to change the name of this printer and also make it defaut.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    How to solve seemingly unsolvable printer issues. Users sometimes run into printing issues where all the normal steps do not seem to work. Well the steps below can show users how to take one extra step beyond the normal steps needed to remove old…
    This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
    Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
    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 …

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now