26Mar/08
Loading multiple drivers into a PE 2.0 image
Here's one that had us searching around the Internet the other day. We were adding drivers to a Windows PE 2.0 (Vista/2008) image with the PEIMG command. Unfortunately, as with most environments, we have a room full of servers with all different makes and models. In order to make the PE image as flexible as possible, we needed to include a large section of our driver library.
How to do it fast? Well, you could write a nifty script, or you could use the good 'ol FOR command.
for /R .\ %i in (*.inf) do peimg /inf=”%i” e:\winpe_x86\mount\Windows
Simple. I love it. Tip of the hat goes to J. Greg for the idea. (one of those "hey, that's so simple why didn't we think of that!" moments).