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.
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"
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.
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.
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.
3. In the Device Manager, find the device you want to install the driver for, right-click on it and select "Update Driver".
4. In the Update Driver window, select the "Browse my computer for driver software".
5. In this window, click on the "Browse" button.
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.
7. Make sure the "Include Subfolder" checkbox is selected and click on the "Next" button.
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.