Jump to content

Inject SATA drivers into Image on Sysprep


Kungfus0n

Recommended Posts

I am currently trying to add SATA support for our Hardware Independent Image so we dont have to change the disk settings to ATA and take advantage of the AHCI. I have had some success by injecting the drivers into the machine after imagine in WinPE. This is for the current ICH10 Intel chipset Drivers, so I am copying the following files to the destinations:


copy /y iastor.inf %PRODUCTIONROOT%\Windows\inf
copy /y iaahci.inf %PRODUCTIONROOT%\Windows\inf
copy /y iastor.sys %PRODUCTIONROOT%\Windows\system32\drivers
copy /y iaahci.cat %PRODUCTIONROOT%\Windows\system32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}
copy /y iastor.cat %PRODUCTIONROOT%\Windows\system32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}

Then injecting the following REG keys into the production drive so sysprep can boot


Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\systemxp\ControlSet001\Control\CriticalDeviceDatabase\pci#VEN_8086&DEV_2681&CC_0106]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

[HKEY_LOCAL_MACHINE\systemxp\ControlSet001\Control\CriticalDeviceDatabase\pci#VEN_8086&DEV_27C1&CC_0106]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

[HKEY_LOCAL_MACHINE\systemxp\ControlSet001\Control\CriticalDeviceDatabase\pci#VEN_8086&DEV_27C5&CC_0106]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

[HKEY_LOCAL_MACHINE\systemxp\ControlSet001\Control\CriticalDeviceDatabase\pci#VEN_8086&DEV_2821&CC_0106]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

[HKEY_LOCAL_MACHINE\systemxp\ControlSet001\Control\CriticalDeviceDatabase\pci#VEN_8086&DEV_2829&CC_0106]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

[HKEY_LOCAL_MACHINE\systemxp\ControlSet001\Control\CriticalDeviceDatabase\pci#VEN_8086&DEV_2922&CC_0106]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

[HKEY_LOCAL_MACHINE\systemxp\ControlSet001\Control\CriticalDeviceDatabase\pci#VEN_8086&DEV_2929&CC_0106]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

[HKEY_LOCAL_MACHINE\systemxp\ControlSet001\Control\CriticalDeviceDatabase\pci#VEN_8086&DEV_3A02&CC_0106]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

[HKEY_LOCAL_MACHINE\systemxp\ControlSet001\Control\CriticalDeviceDatabase\pci#VEN_8086&DEV_3A22&CC_0106]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

[HKEY_LOCAL_MACHINE\systemxp\ControlSet001\Control\CriticalDeviceDatabase\pci#VEN_8086&DEV_2682&CC_0104]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

[HKEY_LOCAL_MACHINE\systemxp\ControlSet001\Control\CriticalDeviceDatabase\pci#VEN_8086&DEV_27C3&CC_0104]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

[HKEY_LOCAL_MACHINE\systemxp\ControlSet001\Control\CriticalDeviceDatabase\pci#VEN_8086&DEV_27C6&CC_0104]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

[HKEY_LOCAL_MACHINE\systemxp\ControlSet001\Control\CriticalDeviceDatabase\pci#VEN_8086&DEV_2822&CC_0104]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

[HKEY_LOCAL_MACHINE\systemxp\ControlSet001\Control\CriticalDeviceDatabase\pci#VEN_8086&DEV_282A&CC_0104]
"Service"="iaStor"
"ClassGUID"="{4D36E96A-E325-11CE-BFC1-08002BE10318}"

The problem I am having is that the machine boots up fine but during Sysprep the drivers are being installed a prompt comes up asking for the iastor.sys file in the D drive.

I can point it to C:\windows\system32\Drivers and everything goes but the prompt doesn't help the whole unattended portion.

Is there something I can change in the inf file? I was thinking it was the [sourceDisksFiles] but not to sure on how to change that. Any help would be appreciated.

EDIT:

This is the part of the inf I am thinking


[SourceDisksNames]
1 = %DiskName%,,,

[SourceDisksFiles]
iaStor.sys= 1

Edited by Kungfus0n
Link to comment
Share on other sites


Is there something I can change in the inf file?

Comment all CopyFiles lines.

Example

[iaStor_Inst]
AddReg = iaStor_Temp_parameters_AddReg
;CopyFiles=CopyFullPort
FeatureScore=0x80

You sir are awesome, thank you very much. Worked perfectly

Link to comment
Share on other sites

Looks like this is working for the Dell 780 but when the process happens for a 760 which dell tells me are the same version. I am getting an issue with other drivers being "unreadable" during sysprep and then the computer kicking off into a checkdisk after I cancel it.

I am using Altiris rdeploy to send the image in WinPE.

This is how I am injecting it in.


reg load HKLM\systemxp %ProductionDrive%\Windows\System32\config\system
reg import .\HII\Drivers\SATA\ICH10\IntelAHCI.reg
reg unload HKLM\systemxp

Edited by Kungfus0n
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...