Add Drivers to XP Images (with Sysprep.inf)
Adding drivers to Sysprep before capturing your Windows image for later deployment is what you want to do to have Windows installs automatically install drivers after deploying an image, so you don’t have to manually do it. This can be a huge time saver with your Windows installs.
Some techs like to use “Driver Packs” (often with 3rd party programs to mass install them) but personally have never used these, and don’t we all like getting the latest driver direct from the OEM? These methods won’t be covered here, however I have found a guide on integrating Driver Packs on msfn.org here.
The traditional method of integrating drivers into a Sysprep prepared image is outlined in Microsoft KB 314479 under the Sysprep section.
The meat of the idea is that after you install Windows, and before running Sysprep:
- Create a directory on the C: drive named whatever, e.g. C:\Support\Drivers
- It is IMPORTANT that you DO NOT put your drivers folder inside the Sysprep folder, else it will fail to recognize them!
- Inside the directory, extract whatever drivers you wish to integrate into subdirectories, e.g. C:\Support\Drivers\RealtekNICs
- The drivers MUST be extracted, no .zip files! e.g.
- C:\Support\Drivers\RealtekNICs\whatever.inf
- C:\Support\Drivers\RealtekNICs\whatever.cat
- C:\Support\Drivers\RealtekNICs\whatever.sys
- etc. etc.
- The drivers MUST be extracted, no .zip files! e.g.
- Edit your Sysprep.inf file and under the [Unattended] section, you want to add these lines: (not all of which relate, but you want these lines anyway)
- OemSkipEula=Yes
- DriverSigningPolicy=Ignore
- UpdateInstalledDrivers=Yes
- OEMPnPDriversPath=\Support\Drivers\RealtekNICs;\Support\Drivers\BroadcomNICs
- There are two driver paths above, but add as many paths as necessary for each driver you wish to include.
- Separate each new driver path with a semi-colon, which is this thing ” ; “ and NOT this thing ” : “
- There is NO need to use C: before the path, as the %systemdrive% variable is added automatically by Sysprep.
- If your OEMPnPDriversPath will be longer than 4096 characters, this will not work. I have two suggestions:
- First you could shorten the length of your path names!
- So instead of: “C:\Support\Drivers\RealtekNICs”
- You could try: “C:\Drvr\Rtk” and “C:\Drvr\Bdcm” and so on…
- Alternately, instead of creating this line in the Sysprep.inf file:
- Use this 3rd party utility from Vernalex.com to add your driver paths.
- You MUST remove this line from Sysprep.inf if you already created it before using the utility linked above!
- First you could shorten the length of your path names!
Don’t have a Sysprep.inf file yet? You can view or download a copy of my personalized Sysprep.inf (only for XP), which you should rename to remove the .txt extension if you download it to use as a template.
Network Boot Guide
- Install WDS (Windows Deployment Services)
- Add Vista/7 Images to WDS
- Add Drivers to boot.wim (for Vista/7 Images)
- Add Drivers to XP Images (with Sysprep.inf) <- You are here!
- Add XP or Modified Vista/7 Images to WDS
- Install Syslinux
- Troubleshooting Issues
Latest News
-
CryptoPrevent v23.5.5.0 just released! v23.5.3.0 Fixed an issue sending email with Office 365 SMTP...
Read More -
d7x v23.1.12 Release Notes Resolved an issue where DataGrab would backup everything except your...
Read More -
d7x v22.8.10 Release Notes Resolved an issue with the “Reset Networking” and “Repair Winsock”...
Read More -
d7x v22.8.9 Release Notes Resolved an issue with the “Set Time Zone” feature on...
Read More -
d7x and Tweaky – Set Time Zone issue with Windows 11 (UPDATED Aug 9th 2022) UPDATE: this issue has been resolved in d7x v22.8.9 and...
Read More -
d7x v22.2.23 Release Notes It appears that d7x was not applying hidden file and...
Read More -
d7x v22.1.16 and v22.1.17 Release Notes Added Microsoft OneDrive integration for d7x Reports storage (see the...
Read More -
d7x v22.1.15 Release Notes Added a user requested option to change the Info Report...
Read More -
d7x v22.1.14 Release Notes A new ‘d7x Release Notes (RSS)‘ window will display the...
Read More -
d7x v22.1.7 Release Notes Added new d7x feature to show system info on the...
Read More