Using Microsoft ImageX with RDP to Capture and Deploy Windows Server Images on HP Integrity Servers
Table Of Contents
b) In the Name field, enter .\hpfeatures\ws7-ia64-
en_us\images\w2k8r2image.wim.
c) Select Prepare using Sysprep.
d) In the Operating System field, choose Windows Server 2008 R2 IA64. The product
key field is filled in automatically.
e) Click Sysprep Advanced settings and select Install additional device drivers. Then,
in the Additional drivers path field, enter .\hpfeatures\ws7-ia64-
en_us\oem\drivers.
f) In the Automation pre-boot environment field, select WinPE Managed (64 bit).
5. Add a Run Script task to mount and capture the ESP partition. Follow these steps:
a) Select Run this script and enter the following script:
rem Mounting and capturing ESP partition
Mountvol Z: /s
%ALTIRIS_SHARE%\waik\tools\ia64\imagex /append Z:
%ALTIRIS_SHARE%\hpfeatures\ws7-ia64-en_us\images\w2k8r2image.wim
"EFI partition"
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).
6. Add a Run Script task to assign a letter to the HPSP partition and capture it. Follow these steps:
a) Select Run this script and enter the following script:
rem Mounting and capturing HPSP
rem Verifying if target system has OEM partition
@echo off
set /a str=0
echo list volume |diskpart |find "400 MB" > temp.txt
for /F "usebackq delims==" %%i IN (`type temp.txt`) DO set str=%%i
rem IF the target system does not have OEM, exit script
if "%str%"=="0" goto nohpsp
rem Creating diskpart script to mount OEM partition
set volume=%str:~9,1%
echo mounting HPSP as letter Y on volume %volume%
echo select volume %volume% > diskpart.txt
echo assign letter=Y >> diskpart.txt
echo exit >> diskpart.txt
rem Executing diskpart to mount HPSP
diskpart /s diskpart.txt
del diskpart.txt
rem Capturing HPSP
echo Capturing HPSP
%ALTIRIS_SHARE%\waik\tools\ia64\imagex /append Y:
%ALTIRIS_SHARE%\hpfeatures\ws7-ia64-en_us\images\w2k8r2image.wim
"HPSP partition" /verify
set returncode=%errorlevel%
:nohpsp
8