Thursday, May 23, 2013

MDT 2012 - Drivers using selection profiles


MDT 2012 – Drivers

Using selection profiles for hardware drivers.  Works well when most systems are standard models from vendors (HP, Dell, …).

STEP 1

Need a custom property called DriversApplied and set it to NO in the CustomSettings.ini

[Settings]

Priority=Default

Properties=DriversApplied

[Default]

DriversApplied=NO

 

STEP 2

Organize your drivers in the Deployment Workbench under the Out-of-Box Drivers.  Import the drivers into the appropriate folder.



STEP 3

Create a selection profile for each model/OS/architecture you have.  Created under Advanced Configuration.



Also, you will need a “catch all” selection profile to catch all others that do not match an exact profile.  Simply create another profile, but select every single folder under x86 to “catch” all 32 bit drivers.

 

STEP 4

After creating all your driver selection profiles (both machine specific and a “catch all) , you have to modify the task sequence.  In the Preinstall phase, REMOVE the Inject Drivers step and create a group called Inject Drivers.  Then create a subgroup inside for each model you have created a selection profile for.



 

On each subgroup, select it, on the right select the Options Tab, Add a Query WMI .  Query is,

Select * from Win32_ComputerSystem where Model like 'HP EliteBook 2540p%'



Use PDQ Inventory, Computer selected to find the exact text for the Model to match the query.

In each subgroup for each model, you have to create 2 steps, one to inject the drivers from the selection profile



 and another to change the value of DriversApplied to YES.



 

Final step in this group is to create a the “catch all” inject drivers step,



Set it to only run when DriversApplied equals NO.