Drvload Command-Line Options
Applies To: Windows 8, Windows 8.1, Windows Server 2012, Windows Server 2012 R2
The Drvload tool adds out-of-box drivers to a booted Windows Preinstallation Environment (Windows PE) image. It takes one or more driver .inf files as inputs. To add a driver to an offline Windows PE image, use the Deployment Image Servicing and Management (DISM) tool. For more information, see Add and Remove Drivers Offline Using DISM.
If the driver .inf file requires a reboot, Windows PE will ignore the request. If the driver .sys file requires a reboot, then the driver cannot be added with Drvload. For more information, see Device Drivers and Deployment Overview and DISM Driver Servicing Command-Line Options.
Drivers added using the Drvload tool are marked as the preferred driver for that device. If you add an updated driver during Windows Setup, the driver that you added with Drvload takes precedence.
Drvload Command-Line Options
The following command-line options are available for Drvload.
drvloadinf_path [,inf_path [...]] [/?]
Option | Description |
---|---|
/? |
Displays usage information. |
inf_path |
Specifies the path to the driver .inf file. The path can contain environment variables. |
If any drivers were not installed, then Drvload will return a non-zero status (%errorlevel%).