WDS Inject Drivers into Boot Image

I've had a crap load of problems with trying to push an image out to the HP1000 laptops using WDS. Because of the unsupported network drivers, I've had to inject the drivers into the boot image for win7 x64. And because I'm using windows 2008 server standard, the gui driver injection is not available... son of a bitch.

So this is the method for injecting it using WAIK commands:

Before starting all this, creating these folders first:
c:\temp
c:\temp\mount
c:\temp\drivers

Then copy the drivers needed into this new drivers folder. Try to keep the file structure of the drivers folder that you have extracted.

Once you've completed that, open WDS and go to the boot images that are available. Disable the boot image that you want to copy first( I would use a vanilla boot image every-time) and then export the image to the C:\temp folder. I've labeled it "bootimg.wim".

Now your ready to create your custom image:

1. Start Windows AIK's Deployment Tools Command Prompt from the programs menu.

2. type in these commands
    dism /Get-WimInfo /WimFile:C:\temp\bootimg.wim
    
3.  dism /mount-wim /wimfile:C:\temp\bootimg.wim /index:2 /Mountdir:c:\temp\mount
    (I had read else where that "/index:1" is what is commonly used with x32. but for x64. I need to use ":2" instead)
    
4.  dism /image:c:\temp\mount /add-driver /driver:C:\temp\drivers\WIN7\64\ /recurse
    <Now above command will add the driver, give path for drivers where you have saved>

Continue step 4 till all the drivers you need are imported into the boot image. once you've finished that...

5.  dism /unmount-wim /mountdir:c:\temp\mount\ /commit
    <it is important to unmount the image. This can take a while.>

6.  dism /cleanup-wim
    <It will remove any stale entries>

When you're finished, import the new boot image back in to WDS. disable all the other images and leave this one running and begin your process of uploading an image to a laptop or pc.

Comments

Popular posts from this blog

Configuring Allied Telesis Switches with PuTTy

FASTER - Arma 3 Server Manager (#Arma3_DIYDGS) Part 1

#DIYDGS - The Basics - Learning Steam_CMD