Using Microsoft ImageX with RDP to Capture and Deploy Windows Server Images on HP Integrity Servers

<RegisteredOrganization>RDP</RegisteredOrganization>
<RegisteredOwner>RDP</RegisteredOwner>
</component>
3. Create a new job. For example, deploy_windows_R2_ImageX.
4. Add a Distribute Disk Image task. Follow these steps:
a) Select Select disk image file.
b) In the Name field, enter .\hpfeatures\ws7-ia64-en_us\bin\EFINTFS.IMG.
c) Unselect Automatically perform configuration task after completing this
imaging task.
d) In the Automation pre-boot environment field, select WinPE Managed (64 bit).
5. Add a Power Control task. Follow these steps:
a) Select Restart.
b) Select Force applications to close without a message.
6. Add a Run Script task to mount and deploy the captured ESP image. Follow these steps:
a) Select Run this script and enter the following script:
rem Mounting and Deploying ESP
rem Mounting ESP
Mountvol Z: /s
rem Deploying ESP
%ALTIRIS_SHARE%\waik\tools\ia64\imagex /apply
%ALTIRIS_SHARE%\hpfeatures\ws7-ia64-en_us\images\w2k8r2image.wim 2 Z:\
b) In the Choose the script operating system field, select Windows and click Next.
c) In the Script Run Location field, select On the client computer.
d) In the Automation pre-boot environment field, select WinPE Managed (64 bit).
7. Add a Run Script task to assign a letter to the HPSP partition and deploy it. Follow these steps:
a) Select Run this script and enter the following script:
rem Mounting and deploying HPSP
@echo off
rem Storing information about w2k8r2image.wim on a temporary file
%ALTIRIS_SHARE%\waik\tools\ia64\imagex /info
%ALTIRIS_SHARE%\hpfeatures\ws7-ia64-en_us\images\w2k8r2image.wim | find
"Image Count" > temp2.txt
rem Setting an environment variable with the number of partition images
stored on w2k8r2image.wim
for /F "usebackq delims==" %%i IN (`type temp2.txt`) DO set num=%%i
del temp2.txt
echo %num%
set /a numimages=%num:~13,2%
echo %numimages%
rem Checking the number of images stored in w2k8r2image.wim
rem if OEM partition was captured, this number should be equal to 3.
Rem if OEM is not present in w2k8r2image.wim, the scripts stops without
error
if %numimages% neq 3 goto :nohpsp
echo Deploying HPSP
10