Windows OS Hub
  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux

 Windows OS Hub / Windows 10 / How to Backup (Export) Installed Drivers from Windows

April 17, 2024 PowerShellWindows 10Windows 11Windows Server 2019

How to Backup (Export) Installed Drivers from Windows

Built-in Windows tools allow you to backup (export) all third-party device drivers installed on your computer to a specified directory. This eliminates the need to manually search for and download drivers when you install (reinstall) Windows on a machine.

Contents:
  • How to Export Drivers from Windows with Command Prompt
  • Exporting Windows Drivers Using PNPUtil
  • How to Install (Restore) Drivers from a Backup on Windows

How to Export Drivers from Windows with Command Prompt

To export all third-party (non-Microsoft) drivers installed on Windows to the C:\drivers directory, open an elevated PowerShell console and run the command:

Export-WindowsDriver –Online -Destination c:\export-drivers

Export-WindowsDriver cmdlet PowerShell

A similar DISM command to export the installed drivers:

dism /online /export-driver /destination:C:\Drivers

This command extracts all third-party drivers from the Windows Drivers Store. Each driver and its dependency files (SYS, DLL, EXE, etc.) are saved in their own directory, which is named according to the name of the driver’s INF file.

Export-WindowsDriver PowerShell cmdlet to backup device drivers

You can create a table containing the class, manufacturer, version, and date of the driver, and then export the list of drivers to a CSV file:

$BackupDrv = Export-WindowsDriver -Online -Destination c:\drivers
$BackupDrv| Select-Object ClassName, ProviderName, Date, Version |Export-Csv c:\drivers\backup_drivers_list.txt -NoTypeInformation -Encoding UTF8

list exported drivers class, vendor and version

If you need to extract drivers from an offline Windows image mounted in the c:\mount\winimage directory:

Export-WindowsDriver -Path c:\mount\winimage -Destination c:\drivers

or
DISM /Image:c:\mount\winimage /Export-Driver /Destination:C:\drivers

Exporting Windows Drivers Using PNPUtil

To manage drivers in Windows, you can also use the PNPUtil.exe command line tool (available on older versions of Windows). Run the command to export all installed drivers from the Driver Store:

pnputil.exe /export-driver * c:\export-drivers

exporting instaled drivers using pnputil

The Export-WindowsDriver and DISM commands allow you to backup all the installed drivers at once. The pnputil command allows you to export only the specific device driver.

List the installed drivers:

pnputil.exe /enum-drivers

Or use PowerShell to filter drivers by type and/or vendor (in this example, we are looking for Realtek NIC drivers):

Get-WindowsDriver -Online | where { ($_.ProviderName -like "Realtek") –and ($_.ClassName -like "Net")}

Copy the INF file name of the driver you want to export and run the commands:

mkdir c:\drivers\realtek
pnputil.exe /export-driver oem5.inf c:\drivers\realtek

export only one specific driver in windows using pnputil

Using pnputil you can remove old, outdated, and unused drivers from the Windows Driver Store.

How to Install (Restore) Drivers from a Backup on Windows

You can use the driver backup directory to quickly reinstall device drivers or install them on a new device after a clean Windows installation.

The device drivers in Windows can be installed one by one. To do this, right-click on the driver INF file and select Install.

install driver from inf file

Or you can install all the drivers from the specified folder (including subdirectories) at once:

pnputil.exe /add-driver C:\export-drivers\*.inf /subdirs /install

pnputil: install all inf drivers from folder recursively

You can import drivers into an offline Windows image by using the Add-Driver parameter of the DISM command (in this example, we allow unsigned driver installation):

DISM /image:c:\win_image /Add-Driver /Driver:C:\export-drivers /Recurse /ForceUnsigned

Learn how to slipstream drivers into a Windows installation image.
5 comments
6
Facebook Twitter Google + Pinterest
previous post
Automatically Add Static Routes After Connecting to VPN
next post
How to Hide Users and Groups from the Global Address List on Exchange/Office 365

Related Reading

Unable to Map Drive: An extended error has...

May 13, 2025

Map a Network Drive over SSH (SSHFS) in...

May 13, 2025

How to Cancel Windows Update Pending Restart Loop

May 6, 2025

View Windows Update History with PowerShell (CMD)

April 30, 2025

Change BIOS from Legacy to UEFI without Reinstalling...

April 21, 2025

5 comments

Lucas June 14, 2015 - 6:26 pm

Thanks so much! I was looking for something exactly like this. Just did the backup, and next week when my new ssd arrives, I will test how it will work on the restore part. Thanks again

Reply
Chris August 7, 2015 - 2:20 pm

How can I then export that list into something else, like csv?

Reply
Max August 14, 2015 - 10:58 am

Use this Powershell command to export output of Export-WindowsDriver to CSV file:
$BackupDrivers | Select-Object ClassName, ProviderName, Date, Version |Export-Csv c:\temp\test.txt

Reply
alejandro October 12, 2016 - 2:54 am

Cómo hago para importarlos a Windows 10, tras haber exportado los drivers?

Reply
Duke June 18, 2022 - 8:18 pm

Awesome!

Reply

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMware
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • Map a Network Drive over SSH (SSHFS) in Windows

    May 13, 2025
  • Configure NTP Time Source for Active Directory Domain

    May 6, 2025
  • Cannot Install Network Adapter Drivers on Windows Server

    April 29, 2025
  • Change BIOS from Legacy to UEFI without Reinstalling Windows

    April 21, 2025
  • How to Prefer IPv4 over IPv6 in Windows Networks

    April 9, 2025
  • Load Drivers from WinPE or Recovery CMD

    March 26, 2025
  • How to Block Common (Weak) Passwords in Active Directory

    March 25, 2025
  • Fix: The referenced assembly could not be found error (0x80073701) on Windows

    March 17, 2025
  • Exclude a Specific User or Computer from Group Policy

    March 12, 2025
  • AD Domain Join: Computer Account Re-use Blocked

    March 11, 2025

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • Install and Manage Windows Updates with PowerShell (PSWindowsUpdate)
  • How to Download Offline Installer (APPX/MSIX) for Microsoft Store App
  • Configuring Port Forwarding in Windows
  • Start Menu or Taskbar Search Not Working in Windows 10/11
  • Get-ADUser: Find Active Directory User Info with PowerShell
  • Adding Drivers into VMWare ESXi Installation Image
  • Tracking and Analyzing Remote Desktop Connection Logs in Windows
Footer Logo

@2014 - 2024 - Windows OS Hub. All about operating systems for sysadmins


Back To Top