Installing out-of-box drivers from the command line when Windows is running

by Mitch Tulloch [Published on 20 July 2011 / Last Updated on 20 July 2011]

How to install out-of-box drivers from the command line when Windows is running.

How to install out-of-box drivers from the command line when Windows is running.

If you need to install out-of-box drivers when Windows is running, you can use the pnputil /a command to do this. This works with most types of drivers but not with printer drivers. If you need to install printer drivers from the command line when Windows is running, you have two options:

Use the prndrvr.vbs script described at http://technet.microsoft.com/en-us/library/cc754632.aspx

Use the rundll32 printui.dll,PrintUIEntry command described at http://blogs.technet.com/b/yongrhee/archive/2009/06/29/how-to-add-printers-with-no-user-interactiion-on-windows-7-windows-server-2008.aspx

If you have feedback concerning this tip, please email me. And be sure to check out my website!

The Author — Mitch Tulloch

Mitch Tulloch is a widely recognized expert on Windows administration, networking, and security. He has been repeatedly awarded Most Valuable Professional (MVP) status by Microsoft for his outstanding contributions in supporting users who deploy and use Microsoft platforms, products and solutions. Mitch has published over two hundred articles on different IT websites and magazines, and he has written or contributed to almost two dozen books and is lead author for the Windows 7 Resource Kit from Microsoft Press. For more information, see www.mtit.com .

Latest Contributions

Featured Links