Okay this just about drove me nuts untill I figured it out. When deploying a WinPE image, you probably going to want to add some drivers (particularly network drivers) to it. There are lots of tutorials out there about how to do this. Evidently Windows 2K8R2 makes it simple. But on 2k8 you still have to deal with the command prompt.
With WinPE 3.0 (what you would use to deploy Windows 7 and 2k8r2) you need to be sure to write your drivers to INDEX 2 for WDS deployment. In other words you need to run a command like:
Dism /Mount-Wim /WimFile:PATH_TO_BOOT.WIM /index:2 /MountDir:PATH_TO_MOUNT_DIR
Then you add your drivers with:
DISM /image:PATH_TO_YOUR_MOUNT /Add-Driver /driver:PATH_TO_YOUR_FOLDER_OF_INF_DRIVERS\ /recurse
Then you commit and dismount with.
Dism /Unmount-Wim /MountDir:PATH_TO_YOUR_MOUNT /Commit
Hope that helps, this was driving me crazy. I’ll save the rant against MS, I’m sure they have a perfectly good reason for introducing multiple images in the files. But I couldn’t find any documentation on it, or anything about how to determine which images are used for what.
At least 2k8r2 is supposed to make this easier.