How to Backup and Import Device Drivers in Windows 10 Using PowerShell


  1. Posts : 5,330
    Windows 11 Pro 64-bit
       #1

    How to Backup and Import Device Drivers in Windows 10 Using PowerShell


    How to Backup and Import Device Drivers in Windows 10 Using PowerShell

    Device drivers are very much essential to ensure a smooth functioning of any OS. To backup these installed drivers on the machine you need to run a specific command into the Powershell.

    First, you'll need to open PowerShell as an Administrator. To open an elevated PowerShell prompt, in the taskbar search bar, type powershell. Now see the result Windows PowerShell which appears on the top. Right-click on it and select Run as Administrator.

    We will be using the Export-WindowsDriver cmdlet to back up your drivers. The Export-WindowsDriver cmdlet exports all third-party drivers from a Windows image to a destination folder.

    In the PowerShell window, type the following command and hit Enter:

    Code:
    Export-WindowsDriver -Online -Destination C:\DriverBackup


    Here C:\DriverBackup is the destination folder, where the device drivers will be exported and saved to.

    You can also export drivers from an offline image. This command exports third-party drivers from an offline image mounted at C:\Windows is:

    Code:
    Export-WindowsDriver -Path C:\Windows -Destination D:\DriverBackup
    After you have backup device drivers you will be able to use this backup to install drivers for all your devices.





    Restoring the Drivers from Backup

    After clean installing Windows, to install the drivers for a device manually (or if Windows prompts you), try this:

    1. Open Device Manager, by pressing Windows + R keys and type Devmgmt.msc into opened Run box, press Enter key.

    2. Right-click on a hardware and click Update Driver Software.



    3. Select the second option, Browse my computer for driver software.



    4. Input or browse to the drivers backup folder path.



    5. Click Next and Windows would automatically find and pick the required drivers in one of the sub-folders, if "Include subfolders" is enabled.

    You can also use Dism tool to import backup device drivers.

    You can restore them using the following command:

    Code:
    Dism /online /Add-Driver /Driver:C:\DriverBackup /Recurse

    Thus the drivers backup and restore task has been made plain simple and easy by the excellent DISM tool and Powershell.
      My Computer


  2. Posts : 31,651
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #2

    I'm afraid Brink already did that one in 2016

    Backup and Restore Device Drivers in Windows 10
      My Computers


  3. Posts : 5,330
    Windows 11 Pro 64-bit
    Thread Starter
       #3

    Bree said:
    I'm afraid Brink already did that one in 2016

    Backup and Restore Device Drivers in Windows 10
    I should have checked his tutorials next time i will.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 10:08.
Find Us




Windows 10 Forums