Wednesday, July 24, 2013

Deploy printer drivers during ConfigMgr task sequence

Last week it was needed to install printer drivers on already deployed Windows 7 systems. Because driver packages can be used only during OS deployment (within a task sequence) that was not an option. Lucky me I found another way for doing this, just use the PnPutil command to do this. Let's have a look at the needed steps now!

Create a new software package (instead of a driver package) without a program, and per model. Add all the packages created to a task sequence, using the "Run command line" option. Put in a name, select the needed package (created before), select a account with enough permissions (because drivers cannot be installed with the system account afterwards), and add a command line:
cmd.exe /c PnPutil.exe -i -a  C:\_SMSTaskSequence\Packages\<PackageID>\*.inf


After that all .inf files available in the package will be scanned and needed drivers installed cq. injected in the Windows 7 driver store. In my opinion a very easy solution to install (printer) drivers on already installed systems. Hope it helps!

Source: danovich.com.au > Thanks for sharing!

Example for another way of installing printers:
RUNDLL32 PRINTUI.DLL,PrintUIEntry /ia /m "<Printer model>" /f "<INF path>\<INF filename>"

4 comments:

  1. how do you get this info?
    C:\_SMSTaskSequence\Packages\
    i have no '_SMSTaskSequence' folder in the C:\. there is a NO_SMS_ON_DRIVE.SMS file though.
    what path would I need to enter?

    ReplyDelete
    Replies
    1. Just use the new example otherwise?
      RUNDLL32 PRINTUI.DLL,PrintUIEntry /ia /m "" /f "\"

      Hope it helps!

      Delete
  2. it is showing me error in printui.dll missing entry: PrintUIentry

    ReplyDelete
    Replies
    1. Just have a look here for more information: http://www.tek-tips.com/viewthread.cfm?qid=620106

      Hope it helps!

      Delete