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.
There are a number of reasons why you would want to backup drivers installed on your Windows 10 PC. Maybe you want to reinstall Windows 10 and don’t want to download all drivers again, maybe the driver for one of your device is no longer available, or maybe, your internet connection is not speed enough to download drivers of hundreds of MBs in size.
One can use Windows PowerShell to export and backup all installed drivers in Windows 10 operating system. This means, after installing all drivers or just before reinstalling your Windows 10, you can use the PowerShell to backup all installed drivers.
You must be signed in as an administrator to be able to backup and restore drivers.
To Back Up All Device Drivers in Command Prompt
1.. Open an elevated command prompt.
2. Enter the command below into the elevated command prompt, and press Enter
3. When exporting has finished, you can close the elevated command prompt if you like.
4. The device drivers will now be exported into the specified folder location (ex: “F:\Drivers Backup”) as your backup. (see screenshot below)
To Back Up All Device Drivers in PowerShell
Open PowerShell with admin rights. To do so, right-click on the Start button and then click PowerShell (Admin). Alternatively, type PowerShell in Start/taskbar search, right-click on Windows PowerShell entry and then click Run as administrator option.
Click Yes button when you see the User Account Control screen to run PowerShell as administrator.
At the PowerShell window, execute the following command:
Export-WindowsDriver -Online -Destination C:\Backup
In the above command, replace C:\Backup with the location where you would like to save exported drivers. You can choose any location on your PC.
To execute the above command, simply copy and paste or type the command, and then press Enter key.
The command might take a few minutes to complete backing up drivers. Once done, you may use the File Explorer to navigate to the folder to see a list of folders containing drivers. You can now install those drivers again on the same PC or any other compatible PC.
You may close the PowerShell window now.