Configure your Task Sequence to Install Driver Packages for Client Devices

This is a continuation of  my post Obtaining and Importing Drivers in SCCM for HP Client Devices where we obtained drivers for our reference HP EliteBook 820 G3 laptop, imported them into the SCCM database, created a driver package and distributed the package to our Distribution Points.

Before carrying on with the instructions here please make sure you have the exact model name of your laptop as reported by WMI. We covered this under “Get the Correct Model Name of the Client Device” in the previous post. (Run “WMIC csproduct GET name” in a command prompt on your client device and make a note of the model name *exactly* as shown.)

As I explained in the previous post the idea is to configure our task task sequence to only install this driver package for this particular model. That’s where the model name comes into the picture. Any typos in the model name will cause the task sequence to skip this driver package from being installed during OSD.

Instructions for MDT Task Sequence

Locate the “Auto Apply Drivers” step under Post Install and disable it.

Add a group under Post Install called Install Drivers

Add a group under Install Drivers called HP

Under HP add an “Apply Driver Package” step, give it a name and choose the driver package you just created

Check “Do unattended installation of unsigned drivers on versions of Windows where this is allowed”

You should have something like this:

clip_image013

Select the HP group and add the following rules in the Options tab:

clip_image015

Select the HP EliteBook 820 G3 step and add the following rules in the Options tab:

clip_image017

This is where you’ll need the model name of the laptop which we obtained using a WMIC query earlier in the post (under Get the Correct Model Name of the Client Device).

Instructions for SCCM Task Sequence

For your SCCM task sequence locate the “Apply Device Drivers” step and disable it.

Add a group under Post Install called Install Drivers

Add a group under Install Drivers called HP

Under HP add an “Apply Driver Package” step, give it a name and choose the driver package you just created

Check “Do unattended installation of unsigned drivers on versions of Windows where this is allowed”

You should have something like this:

clip_image019

Select the HP group and add the following rules in the Options tab:

Add an If statement and choose Any

Add the following WMI Queries

SELECT * FROM Win32_ComputerSystem WHERE Manufacturer LIKE “HP”
SELECT * FROM Win32_ComputerSystem WHERE Manufacturer LIKE “Hewlett Packard%”

Select the HP EliteBook 820 G3 step and add the following rules in the Options tab:

SELECT * FROM Win32_ComputerSystem WHERE Model LIKE “HP EliteBook 820 G3”

Test your Task Sequence

At this point you’ve got everything set up. Go head and test your task sequence. Hopefully you won’t have any  exclamation marks in Device Manager.

 

4 thoughts on “Configure your Task Sequence to Install Driver Packages for Client Devices

    • Expand a string: SELECT * FROM Win32_ComputerSystem WHERE Model LIKE “HP Compaq 8200 Elite SFF PC” TSManager 2019-02-28 09:39:15 5496 (0x1578)
      Error enumerating WMI instances returned from WQL query.
      Invalid query (Error: 80041017; Source: WMI) TSManager 2019-02-28 09:39:15 5496 (0x1578)
      Failed to evaluate a WMI expression. Error 0x(80041017) TSManager 2019-02-28 09:39:15 5496 (0x1578)
      Failed to evaluate an expression. Error 0x(80041017) TSManager 2019-02-28 09:39:15 5496 (0x1578)
      Failed to evaluate an AND expression. Error 0x(80041017) TSManager 2019-02-28 09:39:15 5496 (0x1578)
      Failed to evaluate an expression. Error 0x(80041017) TSManager 2019-02-28 09:39:15 5496 (0x1578)
      Error 0x80041017 in evaluating the condition for the action (Download Drivers for HP 8200) TSManager 2019-02-28 09:39:15 5496 (0x1578)

      • Simply replace quotes (“ “) using your keyboard in the WMI Query Properties interface.

Leave a comment