MDT - Driver manager - profile - if

Stefan Hepperle 6 Reputation points
2022-07-04T07:39:37.073+00:00

Hello,

First I apologize for my broken English...

This question has been asked several times but I'm stuck on one point.

I created a folder for each model we use and I set up a DriverGroup001 variable.

What I'm having trouble with is for computers that have never been deployed. I put another task to download all the drivers but now it installs the drivers related to the computer and all the drivers there...

I saw this post and I don't know how to know if the folder exists :
https://social.technet.microsoft.com/Forums/en-US/e062e2b7-af69-4206-a2c7-f50824554673/mdt-driver-manager-profile-if?forum=mdt

![217285-oobdrivers.jpg][1]
![217235-ts.jpg][2]
![217247-ts-if.jpg][3]

I tried several things in the "if statement" but without success.

Thanks in advance.
S. Hepperle

Windows for business | Windows Client for IT Pros | Devices and deployment | Set up, install, or upgrade
0 comments No comments
{count} votes

6 answers

Sort by: Most helpful
  1. Simon Ren-MSFT 40,346 Reputation points Microsoft External Staff
    2022-07-05T13:07:55.24+00:00

    Hi,

    How about to configure the Inject Drivers task sequence step action with the following settings to use dynamic DriverGroup001:
    Choose a selection profile: Nothing
    Install all drivers from the selection profile

    The configuration above indicates that MDT should only use drivers from the folder specified by the DriverGroup001 property, which is defined by the "Choose a selection profile: Nothing" setting, and that MDT should not use plug and play to determine which drivers to copy, which is defined by the "Install all drivers from the selection profile" setting.

    A similar thread for your reference:
    MDT - deployment fails when out-of-box drivers are enabled

    Hope it helps. Thanks for your time.

    Best regards,
    Simon


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

  2. lupinlicious 136 Reputation points
    2022-07-07T18:59:02.047+00:00

    I'm not sure if I follow you completely, but I'll try and answer.

    To map a network drive from a task sequence, create a new Run Command Line: net use h: \IP or Host>\DeploymentShare\some\folders\ /user:computername\username your-password
    You probably don't need this since the deploymentshare would automatically mount this as Z: drive and read everything from there, or do you wish to copy files to the X drive (WinPE)?

    When it comes to drivers and injections. I have created three folders based on manufactures, you need to type the following on each computer.

    wmic computersystem get manufacturer
    wmic computersystem get model

    Each folder of manufacturer have their own models like "Latitude 5410". Then download the .CAB files from Dells webpage and insert the drivers for each model.
    You can also manually download the drivers manually and then add them.

    218705-image.png

    Under Preinstall, create a new Task Sequence Variable
    Task Sequence Variable: DriverGroup001
    Value: Windows 10 x64\%Make%\%Model%

    I have mine right after Enable Bitlocker (Offline).

    Note that the Out-of-Box Drivers and Windows 10 x64, you can have a different name rather than Windows 10 x64 if you like, but it has to match the same name in the task sequence.

    Under the pre-defined Inject Drivers:
    Choose a selection profile: Nothing
    Install all drivers from the selection profile

    Go to Advanced Configuration and select Selection Profiles and create or edit DriverGroup001 and select all your brands

    1 person found this answer helpful.

  3. Stefan Hepperle 6 Reputation points
    2022-07-12T07:00:16.523+00:00

    Hello,

    I managed to do what I wanted thanks to Johan Arwidmark who created a documentation :
    https://www.deploymentresearch.com/add-driver-fallback-to-mdt-lite-touch/

    Maybe it will be useful for some.

    Thanks for your help,
    S. Hepperle

    1 person found this answer helpful.
    0 comments No comments

  4. Simon Ren-MSFT 40,346 Reputation points Microsoft External Staff
    2022-07-12T07:35:41.08+00:00

    Hi,

    Thanks very much for your feedback. We're glad that the goal is achieved now. It's appreciated that you could click "Accept Answer" to the helpful reply, this will help other users to search for useful information more quickly. Here's a short summary for the problem.

    Problem/Symptom:
    Look for a way to check if the driver folder exists for a specific device in Out-of-Box Drivers, otherwise it installs all the drivers.

    Solution/Workaround:
    Add a fallback driver script to the task sequence. The script looks for the drivers folder used by MDT during deployment, and if no folder is found the scripts set the DriversFallback variable to True.

    Reference Link:
    Add Driver Fallback to MDT Lite Touch

    Thanks again for your time! Have a nice day!

    Best regards,
    Simon


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

  5. HEPPERLE Stefan 1 Reputation point
    2022-07-05T14:01:11.2+00:00

    Hi,

    Thank you for your reply.

    That's what I did but sometimes I get a blue screen after installing Windows, when the drivers weren't exported and the folder didn't exist in out of box drivers.

    In fact I'm looking for a way to check if the folder exists in Out-of-Box Drivers, otherwise it installs all the drivers.

    Best regards,
    S. Hepperle


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.