How to List, Back Up, and Install Windows Drivers With CMD

Updated on November 9, 2026.

Use driverquery to see which drivers are installed. Use pnputil to list, back up, or install driver packages. A list helps you check what is on the PC. A backup contains the files you can use to reinstall supported drivers later.

The commands below work in Command Prompt on Windows 11 and Windows 10. Open Command Prompt as administrator before exporting or adding packages.

Windows drivers and Command Prompt

Choose the right driver command

What you want to do Command What you get
List installed drivers driverquery A list of drivers reported by Windows.
List saved driver packages pnputil /enum-drivers Third-party packages in the driver store, including their published names and versions.
Back up driver files pnputil /export-driver Copies of the selected driver packages in a folder you choose.
Add a driver from a local folder pnputil /add-driver Adds a package to the store. The /install option applies it to matching devices when Windows selects it.

View Windows drivers or save a CSV list

Open Start, search for Command Prompt, and open it. Type driverquery and press Enter. To save a more detailed list as a spreadsheet-friendly CSV file, run this command.

driverquery /v /fo csv > "%USERPROFILE%\driver-list.csv"

Open driver-list.csv in your user folder. If you need the package name used by PnPUtil, run pnputil /enum-drivers and look for a Published Name such as oem42.inf. A package in the store can be present even if no device is using it. Microsoft’s driverquery reference

Back up driver packages with PnPUtil

  1. Search for Command Prompt, choose Run as administrator, and approve the prompt if this is your PC.
  2. Create a destination folder and export the packages.
mkdir "C:\DriverBackup"
pnputil /export-driver * "C:\DriverBackup"

Open the folder and check that the export contains driver files, including .inf files. Copy the folder to a separate drive if you plan to reinstall Windows. To export one package, replace * with its published name from pnputil /enum-drivers. Windows’ built-in drivers and the apps that came with your hardware are separate from this third-party package backup. Microsoft’s PnPUtil command reference

Install a saved driver from Command Prompt

Check that the package is for your exact device and Windows version. For one driver, run the command below in an administrator Command Prompt, replacing the path with the real .inf file.

pnputil /add-driver "C:\Drivers\device.inf" /install

To add packages from your own verified backup on the same PC, use /subdirs to include the folders inside it.

pnputil /add-driver "C:\DriverBackup\*.inf" /subdirs /install

Windows chooses which driver to use for each matching device. Check the result in Device Manager > device properties > Driver and restart if prompted. If you need a newer package, start with Windows Update or the device maker’s support page. See our guide to checking Windows commands before running them.

Frequently asked questions

Can I see the Windows driver version from Command Prompt?

Run pnputil /enum-drivers for third-party package versions. To check the driver a device is using right now, open the device’s Driver tab in Device Manager.

Is a driverquery CSV a driver backup?

The CSV records information about drivers. Use pnputil /export-driver to save the actual package files.

Can I back up drivers before reinstalling Windows?

Yes. Export your third-party packages and save a copy on a separate drive. Keep the network driver for your PC handy so you can get online after reinstalling.

Can PnPUtil update every driver from the internet?

PnPUtil installs packages you already have. To download newer drivers, check Windows Update or your device maker’s support page.

Why did the package add successfully without changing the driver?

The driver might be in the store without matching the device, or Windows may prefer another compatible package. Check the active driver in Device Manager.

Can I use the same driver backup on a different PC?

Check the device model, Windows version, and processor architecture first. An old backup can help on matching hardware. For a different PC, get the packages for that model.