Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


Sign in to follow this  
Kungfus0n

Inject SATA drivers into Image on Sysprep

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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...