Contents

How to Recover/Export Windows Drivers

Contents

This recipe is about the Export-WindowsDriver cmdlet in Windows and how to use it to export the drivers present in a running windows installation to a directory.

PowerShell is a command-line shell and scripting language used in Windows to automate or interact with the system in a CLI fashion. Hated by some and adored by others as many tools; but with some secrets that you can use to simplify your life.

Export-WindowsDriver cmdlet exports all third-party drivers from a Windows image to a destination folder.

The syntax is:

1
2
3
4
5
6
7
8
9
Export-WindowsDriver
      [-Destination <String>]
      -Path <String> | [-Online]
      [-WindowsDirectory <String>]
      [-SystemDrive <String>]
      [-LogPath <String>]
      [-ScratchDirectory <String>]
      [-LogLevel <LogLevel>]
      [<CommonParameters>]

Some examples:

Export drivers from the running operating system

1
Export-WindowsDriver -Online -Destination d:\drivers

Export drivers from an offline image

1
Export-WindowsDriver -Path c:\offline-image\path -Destination d:\drivers

To get all drivers from a new machine and save them to the “EM_Drivers” folder

1
Export-WindowsDriver -Online -Destination C:\EM_Drivers -LogLevel 1

Hope it helps you
Have a great day

Buy me a Coffee
Hope you find this useful, if you have any question please visit my twitter @bigg_blog and if you have a couple of pounds buy me a coffee.
G