How to Backup Drivers Using PowerShell Command in Windows 10

For every hardware device connected to your system, Windows needs to install a compatible driver for it to work properly. Though Windows 10 can automatically download the drivers and install them for you. Specific drivers like Graphics driver needs to be manually installed to make sure that it is the latest and compatible one. After you install all the drivers, you can use a simple PowerShell command to backup drivers. This backup helps you restore them as and when needed without having to look for them in the CD/DVD driver or on the internet.

So, without further ado, use this PowerShell command to backup Windows drivers.

Steps to Backup Drivers with PowerShell Command

Using a single PowerShell command, you can backup all installed drivers on your system. All you have to do is, open the PowerShell as admin and run the command.

1. Open the start menu.

2. Search for PowerShell and click on the “Run as Administrator” option to open PowerShell with admin rights.

Powershell command to backup drivers 01

3. In the PowerShell window, execute the below command. Don’t forget to replace D:\BackupDestination with the actual folder path where you would like to save the driver backup.

Export-WindowsDriver -Online -Destination "D:\BackupDestination"

Powershell command to backup drivers 02

4. Once you execute the command, give PowerShell a few seconds and it will backup all the installed drivers. You will see the output something like the below image. Of course, depending on what drivers you have, the output will differ.

Powershell command to backup drivers 03

5. To verify, open the destination folder in the file explorer and you will see that Windows has backed up drivers with PowerShell command. The good thing is, every device driver is in its own folder.

Powershell command to backup drivers 04

Related: How to disable automatic driver installation in Windows 10.

Restore Backed Up Drivers

Of course, you are backing up all the installed drivers so that you can restore them when needed without having to download them again. Interestingly, we are going to use the Device Manager to restore the drivers. This is because Windows uses device IDs as the driver names. This makes it hard to find the relevant driver for a particular device. The good thing is, when using the Device Manager, you don’t have to deal with that. Device Manager will take care of finding the relevant driver from the backup. So, follow the below steps to restore backed up drivers.

1. Open the start menu.

2. Search for “Device Manager” and open it.

Powershell command to backup drivers 05

3. In the Device Manager, find the device you want to install the driver for, right-click on it and select “Update Driver“.

Powershell command to backup drivers 06

4. In the Update Driver window, select the “Browse my computer for driver software“.

Powershell command to backup drivers 07

5. In this window, click on the “Browse” button.

Powershell command to backup drivers 08

6. The above action will open the Browse window. Here, find the driver backup directory and select it. Remember, just select the root backup directory. There is no need to select a folder inside the backup folder.

Powershell command to backup drivers 09

7. Make sure the “Include Subfolder” checkbox is selected and click on the “Next” button.

Powershell command to backup drivers 10

8. Windows will now scan the backup folder, finds the relevant driver and installs it.

9. After installing the driver, Windows will show a confirmation window. Close it.

10. Reboot Windows to apply the driver changes.

That is it. As you can see, it is pretty easy to backup drivers using PowerShell command. It is also easy to restore them when needed.

If you like this article, do check how to backup Windows 10 to a network drive and how to backup start menu layout.

1 thought on “How to Backup Drivers Using PowerShell Command in Windows 10”

Leave a Comment

Scroll to Top