Windows 10: Have Windows 10 sysprep install drivers from network share

Discus and support Have Windows 10 sysprep install drivers from network share in Windows 10 Support to solve the problem; For Windows 10, version 20H1, build 19042.928, is it possible to have sysprep install drivers from a network share, during the sysprep operation? If... Discussion in 'Windows 10 Support' started by 8bithero, May 4, 2021 at 5:16 AM.

  1. 8bithero Win User

    Have Windows 10 sysprep install drivers from network share


    For Windows 10, version 20H1, build 19042.928, is it possible to have sysprep install drivers from a network share, during the sysprep operation? If so, which component of the answer file would I need to add? I have already tried Microsoft-Windows-PnpCustomizationsWinPE component, but that requires manually booting into Windows PE, which isn't feasible for deployment off multiple computers. Any advice would be appreciated.

    :)
     

  2. Have Windows 10 sysprep install drivers from network share

    I believe that you may be mixing up some terms. Sysprep doesn't install drivers from anywhere, not even local. Sysprep is what prepares the system for imaging and optionally generalizes Windows.

    I believe that you are likely thinking about the installation process after you have sysprepped the system, is that correct? Another possibility (discussed below) is that you could inject the drivers that you need into your already sysprepped image. Those drivers would then automatically install during setup.

    I'm not really sure about a way to install drivers from a network location during the installation, but I can think of a few alternatives:

    1) At the very end of setup, Windows can run a script by the name of SetupComplete.cmd. I suppose that it might be possible to place commands in here to install drivers from a network location. You may have to experiment. But the heart of the script might have something like this:

    pnputil /add-driver \\MyServer\MyShare\*.inf /subdirs /install

    This would traverse all subdirectories of the location \\MyServer\MyShare and install all the drivers located there.

    I don't do this over a network, but I keep a folder with all drivers exported from a system. When I install Windows from scratch, I run the above command and it installs ALL drivers for my system with that single command.

    Note that I'm not 100% confident in this working via the script as I don't know if the script can install drivers without some user being logged on.

    2) Almost identical to the above, but without a script and after you have logged on for the first time: Simply establish a network connection to the location holding the drivers, then run the command noted above. With that one single command all drivers for the system can be installed.

    3) Another possibility, although not installing drivers from a network location, would be to simply inject all the drivers that your system needs into your sysprepped image. By doing this, all the drivers needed by your system will be installed during setup without the need to hit any locations, networked or even local, for drivers. They will simply be installed during setup.

    I can provide a step-by-step procedure to doing that if you are interested, but I'm not going to expend the effort unless you tell me that this is something you are actually interested in knowing how to perform *Smile

    Hope that provides some ideas and maybe someone else will have additional / better ideas *Smile

    EDIT: One point of clarification: You can inject drivers for multiple different systems into your sysprepped image. Only the drivers applicable to the system being installed on will actually get installed during installation.
     
  3. 8bithero Win User
    Have Windows 10 sysprep install drivers from network share

    For Windows 10, version 20H1, build 19042.928, is it possible to have sysprep install drivers from a network share, during the sysprep operation? If so, which component of the answer file would I need to add?

    I have already tried Microsoft-Windows-PnpCustomizationsWinPE component, but that requires manually booting into Windows PE, which isn't feasible for deployment off multiple computers.

    Any advice would be appreciated.
     
  4. 8bithero Win User

    Have Windows 10 sysprep install drivers from network share

    Have Windows 10 sysprep install drivers from network share

    Thanks for the ideas hsehestedt. In my previous Windows 10 images I had created, I had placed all drivers into a directory (such as C:\Drivers), and then I had added that path to the "DevicePath" property in "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion" registry key. This worked well, as sysprep would install the drivers, before OOBE phase. But I work in an organization where we have quite a lot Dell desktops and laptop models that we maintain, so every new model we purchased, I would add drivers to "C:\Drivers". This of course would increase the size of the image, resulting in longer imaging time.

    I was considering adding the UNC path to the network share to "DevicePath" property. Unfortunately the network share is password protected. Not sure if there is a way to include a domain username and password in conjunction with "DevicePath" property.

    This seems to be the best solution. I already have the image automatically logon to the local Administrator account anyway, since we have to perform a few additional tasks. I was thinking of disabling Windows Update downloading drivers when creating the image. I would still keep the basic network and storage drivers in C:\Drivers that Dell has available via WinPE, which would allow the system to traverse the network share post-sysprep. I can easily code a PowerShell script to check the computer model and have pnputil only look in the network folder for that particular computer model. Then I would re-enable Windows Update downloading drivers.

    Does this sound like a good idea?
     
Thema:

Have Windows 10 sysprep install drivers from network share

Loading...
  1. Have Windows 10 sysprep install drivers from network share - Similar Threads - sysprep install drivers

  2. Windows 10 network sharing.

    in Windows 10 Network and Sharing
    Windows 10 network sharing.: hi there, I have 3 computers at home, 2 with windows 10 pro version 2004 and 1 with windows 10 home version 2004. PC 1 is windows 10 pro 2004 edition printers connected locally PC 2 is windows 10 pro as well. PC 3 is home edition. PC 2 and 3 need to connect to PC 1 to...
  3. Windows 10 network sharing.

    in Windows 10 Network and Sharing
    Windows 10 network sharing.: I have 3 computers on my private network, A, B and C. All are set the same for discovery and sharing. Computer B can access A and C. Computer C can access A and B. However computer A can access only C. What can cause this? Note: access = computer name shows in file...
  4. Windows 10 Networking and Sharing

    in Windows 10 Network and Sharing
    Windows 10 Networking and Sharing: Two days ago I had all my computers on my private home network seeing all the wonderful shared files folders and directories as I intended. I updated this infernal and constantly disappointing Windows 10 machine and now it can't be seen or see any of the home network. In my...
  5. Having problems with my network sharing

    in Windows 10 Network and Sharing
    Having problems with my network sharing: I have a couple of PCs on my network both of which are using Windows 10. For some reason, I'm having problems with the network. On one computer I can see both computers that are on the network. I can open up one computer from that computer and put things in the public...
  6. Windows 10 Network Sharing

    in Windows 10 Network and Sharing
    Windows 10 Network Sharing: Hello. This is my first post. My name is Matt. I work in the IT/Telecom field professionally. I am 38 and have been building PCs for over 20 years. I'm not PC/networking ignorant, but there is always more to learn, so I humbly ask for assistance. So, I have a seemingly...
  7. Network Sharing in Windows 10

    in AntiVirus, Firewalls and System Security
    Network Sharing in Windows 10: "You do not have permission to access \\PC_NAME contact your network administrator to request access" after updated in Windows 10? I added permission "EVERYONE" in security....
  8. WIndows 10 Activated in sysprep mode from clean install?

    in Windows 10 Updates and Activation
    WIndows 10 Activated in sysprep mode from clean install?: Hi guys, I new to the forum I'm having issues with deploying out-of the box windows 10 on a Lenovo B50-80EW preinstalled win 7 pro and upgradable to win 8.1 Pro however since the new windows 10 update build 1511 ISO I download I thought it would go through OK . without...
  9. BSOD While Installing from Network Share.

    in Windows 10 BSOD Crashes and Debugging
    BSOD While Installing from Network Share.: Hey... I have recently upgraded my PC and now whenever I install a game from a network shared drive, game installs fine, but when I get the installation complete dialog, and as soon as I hit finish button, PC BSODs. It also happens when I launch some launcher app from...
  10. Windows 10 doesn't auto install drivers after sysprep

    in Windows 10 Installation and Upgrade
    Windows 10 doesn't auto install drivers after sysprep: I am working on creating a new master image to deploy which is windows 10 x64bit to several different models of computers throughout our organization. everything seems to be working but when it first boots up after sysprep it does not auto install the drivers like it does in...