Drvload Command-Line Options

Applies To: Windows 7

Note

This content applies to Windows 7. For Windows 8 content, see Windows Deployment with the Windows ADK.

The Drvload tool adds out-of-box drivers to a booted 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.

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.

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.

drvload.exeinf_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 failed to install, then Drvload will return a non-zero status (%errorlevel%).

See Also

Concepts

Deployment Image Servicing and Management Command-Line Options