This started as a little try and fail project. I wanted to create a powershell script that could export all the drivers inside a folder in the deployment workbench so I could just have all my drivers in the workbench forever and export them when I needed them. This way I could easily build up a Giant driver repository and use MDT for management.
MDT creates is own folder structure under the deploymentshare. This is not like you see it in the Deployment Workbench. Here is a picture in the Workbench:
And here is a screenshot from the file system:
So in order to export the drivers you will have to do some dirty work. Importing stuff into MDT is never hard. Either using the built-in cmdlets for MDT or looking at some great examples online. Why is there not a single export cmdlet.Here is the import cmdlets in the MDT Powershell module:
Why is there not Export-MDTDriver or something similar……
A good example of using these cmdlets is Johan Arwidmarks Driver importer script (I use this frequent):
I got a little inspiration to do this from Keith Garner after testing his Application Export util (this is a very cool util!):
It’s not that hard to do this with a command line script, but would it not be cool with a GUI on top? That’s what I ended up writing (partial of code is from Primal Forms). Here are some screenshoots of the script in Action:
In order to use this you will have to set execution policy to a level that allows this to run. When you start the script it will ask for your deploymentshare (C:\DeploymentShare). Then it will enumerate all parent folders for drivers and build a list of checkboxes from this. When you hit the Export button after making your selections it will ask you for the export root directory. For Example C:\temp .
When you have choosen your root directory and it starts to export, it will create the folder structure that you have inside your workbench. For Example C:\temp\Windows 7 X86\Dell\Optiplex 790
It will also keep the driver structure. MEDIA\nvhda_126.96.36.199_F4A0D6DE9F4A8F01FDB86BBF42FEB20B312DFA14Files*******
I hope this is something that can be used by more than just me. Contributing is everything! Feel free to comment and make suggestions for improvments.
An updated script can be found on my github here:
A video tutorial is also available under our video section:
The script can be found in the download section or here: https://skydrive.live.com/redir?resid=7BC34EA39529A4CD!161 (DriverExport_GUIVersion_1.3.zip) – It is a single powershell script.
(Note: I take no responsibility for what you do with this script. Always test before putting things into production!)
Good luck on your driver exporting!