In this post, we will see how you can export and back up your Device Drivers using PowerShell in Windows 10. Windows 10 ships with PowerShell v 5 which is a command-line shell and scripting language, built on the .NET Framework, designed for system administration, IT professionals and developers. We have already seen a bunch of posts where we have seen how PowerShell can help us simplify carrying out of tasks. You can update Windows Defender definitions, list Drives, uninstall Universal apps, find scheduled tasks queued status, create System Image, create a desktop shortcut to open Windows Store apps, and even get an Installed Driver list, to mention a few.
Backup Windows Drivers using PowerShell
Open PowerShell as an Administrator. To open an elevated PowerShell prompt, in the taskbar search, 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:
Export-WindowsDriver -Online -Destination D:\DriverBackup
Here D:\Driver Backup is the destination folder, where the 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:\offline-image is:
Export-WindowsDriver -Path c:\offline-image -Destination D:\DriverBackup
A detailed read can be found at TechNet.
Now take a look at how to generate a list of Disabled Features in Windows 10 using PowerShell.
You can also use the built-in Device Manager to manage, backup, restore your Drivers. Then there are freeware like Double Driver, Driver Fusion, Free Driver Backup, etc, that help you easily backup and restore drivers.