Deployment Solution

 View Only

Hardware Independant Imaging with Altiris DeployAnywhere and WinPE 2.1 Scripting 

May 26, 2009 06:50 PM

Here is a process for using DeployAnywhere with WinPE 2.1 to Deploy an XP Image with additional PNP drivers.

I came up with this as DA won't work in conjunction with OEMPNPDRIVERS in Sysprep.inf as it populates the DevicePath Registry Key before MiniSetup runs.

Create a Deployment Job: All tasks to run in WInPE 2.1 Automation, IMPORTANT... The order of the tasks is critical and must not be changed.

Task 1 distributes the sysprep'ed Image (e.g. XPwSP3 ), Don't select the DA option here it is run later as a script, Don't Select Configure here run it later.

Task 2 injects the sysprep.inf

Task 3 Injects the "DevicePath" Registry value that lists all subfolders of c:\Drivers containing drivers. SEE EXAMPLE SCRIPT BELOW

REM Inject DevicePath Registry Value

Reg load HKLM\TempHive c:\windows\system32\config\software

Reg Add "HKLM\TempHive\Microsoft\Windows\CurrentVersion " /v DevicePath /t REG_EXPAND_SZ /d "C:\Windows\inf;C:\drivers;c:\drivers\R59444;c:\drivers\R97809;c:\drivers\R103617;c:\drivers\R96614;c:\drivers\R85457;c:\drivers\R88093;c:\drivers\R95162;c:\drivers\R99254;c:\drivers\R53654;c:\drivers\R46584;c:\drivers\R62804;c:\drivers\R90698;c:\drivers\R171789;c:\drivers\R167368;c:\drivers\R161761;c:\drivers\R153830;c:\drivers\R201108;c:\drivers\R197163;c:\drivers\R188776;c:\drivers\R193524;c:\drivers\R197257;c:\drivers\R197547;c:\drivers\R197546;C:\drivers\R205428;C:\drivers\R207886" /f

Reg unload HKLM\TempHive

Task 4 runs DeployAnywhere which scans the PC's hardware and compares it with its Driver Database. (Currently only Mass Storage and NIC drivers are supported) then injects the Hal, Mass Storage and NIC Drivers using a very similar process to the script above and add its own paths to the "DevicePath" KeySEE EXAMPLE SCRIPT BELOW

REM Inject Hal, Nic and Storage Drivers with DeployAnywhere

del %SystemRoot%\inf\atrsdfw.inf"

copy %ALTIRIS_SHARE%\Ghost\SMEUTIL.SYS %SystemRoot%\system32\drivers

%ALTIRIS_SHARE%

cd\Ghost

GhDplyAw32.exe /target=c:\windows /ddb=F:\driversdb

cd\

Task 5 is a simple xcopy command that copies the contents of your x:\Drivers path to to C:\Drivers on the PC

Task 6 will be you Configure Job etc, etc

Additional Notes

If WinPE cannot access the NIC or Storage Device on the PC add the Drivers (Important WinPE 2.1 is a Vista Kernel therefore requires Vista Drivers) using the PXE configuration Utility.

If the Image loads onto the PC but you get the BSOD (Blue Screen of Death) then you will need to add both the XP and Vista drivers for the NIC and Mass Storage Devices for the PC into the Deploy Anywhere Database.

If the Image goes on OK but you have additional missing devices in device manager Add the Driver Folders for each of the devices to X:\Drivers (only the XP drivers are required here) and then add the folder name to the end of the REG ADD line of the "Inject Device Path Registry Value" Task (syntax must be conformed to exactly)

Keep the Drivers Directory Hierarchy flat as "DevicePath" registry key has a 4096 character limit, You could put conditions on the Deploy Job and Have separate "DevicePath" strings and Drivers Directories for each model if you need to.

Comments Are Welcome

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Related Entries and Links

No Related Resource entered.