Delen via


Drvload Command-Line Options

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 to an Offline Windows Image.

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 syntax

drvload inf_path [,inf_path [...]] [/?]

Drvload Command-Line Options

The following command-line options are available for Drvload.

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%).

WinPE overview

WinPE: Mount and Customize