Final answer:
To add third-party drivers to a WIM file with DISM, you should mount the WIM file, add the drivers using '/Add-Driver' command, and unmount with commit changes.
Step-by-step explanation:
To update a previously captured image with third-party drivers using the Deployment Image Service and Management Tool (DISM) command options, you would typically perform the following steps:
- First, ensure that the WIM file you wish to update is accessible and that you have the third-party driver files you want to add to the image.
- Open an elevated command prompt (Run as administrator).
- Type the following command to mount the image to a folder: dism /Mount-Wim /WimFile:C:\path\to\your\image.wim /index:1 /MountDir:C:\mount, replacing the paths with the correct ones for your image file and the mount directory.
- Now, to add the drivers, use the command: dism /Image:C:\mount /Add-Driver /Driver:C:\path\to\drivers /Recurse, ensuring the driver path points to where your drivers are located. The '/Recurse' flag will add all drivers in the folder, including subfolders.
- Finally, after adding the drivers, unmount the image and commit the changes using: dism /Unmount-Wim /MountDir:C:\mount /Commit.
Remember to use the proper directories corresponding to the location of your image and where you've mounted it. The process allows you to keep your image up to date with the latest drivers, which can be essential for deployment in a controlled environment.