Injecting Drivers Based On Target Computer Model Using MDT

One of the first thing I learnt when I started getting into Windows deployment was that Microsoft and, more importantly, the industry in general encourages the development of one master image and using a tool such as the Microsoft Deployment Toolkit to inject the right drivers based on the computer model at deploy time. I was curious to see how it works in practice since my workplace had a different image for every computer model within the organisation.

There are two ways to get this done – using Selection Profiles and using a custom Task Sequence Variable. I chose the latter which I understand is the right way to go about it.

In a nutshell, the custom Task Sequence Variable step runs a WMIC query to determine the make and model of the target computer at deploy time and look for drivers in the right subdirectory within the Out-Of-Box Drivers folder. It’s important that the names of the subdirectories must be exactly the same as the make and model returned from the WMIC query.

Here’s how this is set up in my Lab which will work for both MDT 2010 and MDT 2012.

The Out-of-Box Drivers Folder

First things first, here’s how my Out-of-Box Drivers folder is organised within the Deployment Workbench

image

You will notice that I’ve organised my folders by Windows version and architecture, followed by make and model. You must run a WMIC query on your target computer to determine the make and model of the computer and make sure you spell the make and model exactly the same in your Out-of-Box Drivers subdirectories as the values returned from the query.

The folder name for the computer manufacturer (e.g. Windows 7 x64\Hewlett-Packard) must match the value returned from running a WMIC query on the target computer

WMIC csproduct GET vendor

clip_image004

Similarly, the computer model (e.g. Windows 7 x64\Hewlett-Packard\HP Compaq dc5800 Small Form Factor) must match the value returned from the query too

WMIC csproduct GET name

clip_image006

The Delploy Task Sequence

On my deploy Task Sequence I added a custom Task Sequence Variable above the Inject Drivers step in the Preinstall stage as follows:

image

The important thing to notice here is the value field.

The %make% and %model% variables will be determined at deploy time when a WMIC query is run to determine the manufacturer and model of the target computer. It is for this reason the folder names in the Out-of-Box Drivers folders must match the value returned from the WMIC query on your target computer otherwise injecting the drivers will fail.

Finally, in the Inject Drivers step just below our custom Drivers Path step we created earlier, select “Nothing” under “Choose a selection profile”.

clip_image010

That’s it. As long as you get the computer manufacturer and model exactly right everything should work perfectly.

Advertisements

7 thoughts on “Injecting Drivers Based On Target Computer Model Using MDT

  1. Thank you for the article. I definitely want to figure out how to get this working.

    I did want to point out that your command is incorrect in the article, however the screenshot does show you using the right one:

    “WMIC csproduct GET model” should be “WMIC csproduct GET name”

    Take care!

  2. Thanks for great article. Just wondering – do I need to set up Inject drivers profile selection also in Postinstall TS or default Inject Drivers from Command line (cscript.exe “%SCRIPTROOT%\ZTIdrivers.wsf”) is enough? Thanks

  3. I have Dell tablet Venue 10 pro 5055, I’m trying to pxe boot to it with an ethernet usb adapter from startech. I”m able to pxe boot but when I have to type the credentials to pick the task sequences it shows me that Invalid credentials: The network path was not found. I use the same method on a regular PC my credentials work just fine there. I’m wondering what needs to be done in order for me to be able to authenticate from the tablet. By the way the ethenet usb adapter drivers I have injected in Out-of-Box. Please help, I would appreciate your help.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s