Ghost Solution Suite

 View Only

Create Winpe4.0 Package to Support Imaging UEFI Hardware 

Jul 24, 2013 03:17 PM

The purpose of this article is to create a Windows PE 4.0 boot package in the form of ISO image which can write on a USB thumb drive, a CD, a DVD, or used with a virtualization environment as a bootable image.

To proceed, first you need to download the Windows ADK (Windows Automated Deployment Kit) installer from Microsoft site http://www.microsoft.com/en-in/download/details.aspx?id=30652 ..

Follow the instruction given in the Readme under the Installation instructions section to install. You must also refer to the system requirements section, which contains the pre-requisites.

Follow the below instruction to create boot package. Same instructions have also been given in the ADK user guide.

Create folder called WINPE on c:\drive and copy the boot.wim file from the amd64 folder that is located under ADK installer. You can also create a ghost folder under the WINPE folder and copy all the ghost binaries that are provided as patch.

Note: The following commands are for the Microsoft ADK application and are not supported by Symantec Technical Support.  If these instructions fail, please contact Microsoft and their technical support. Symantec supports the Ghost binaries and their use.

To get the latest ghost patched binaries which supports imaging UEFI hardware please contact Symantec support team at www.symantec.com/business/support/index

After installation of ADK, from the Start Menu (Start/All Programs/Windows Kits/Windows ADK) select the Deployment and Imaging Tools Environment item, or from the run command paste the following: C:\Windows\system32\cmd.exe /k "C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Deployment Tools\DandISetEnv.bat"

This will launch the appropriate command prompt from the Microsoft AIK. Execute the following commands -

C:

set DeploymentKit="C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit"
set PETools="%DeploymentKit%\Deployment Tools\amd64\DISM"
cd %PETools%
dism.exe /Mount-Wim /WimFile:c:\winpe\winpe.wim /index:1 /MountDir:c:\winpe_x64\mount
pause
dism.exe /image:c:\winpe_x64\mount /Get-Packages
pause
dism.exe /image:c:\winpe_x64\mount /Add-Package /PackagePath:"C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\winpe-hta.cab"
dism.exe /image:c:\winpe_x64\mount /Add-Package /PackagePath:"C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-us\winpe-hta_en-us.cab"
REM dism.exe /image:c:\winpe_x64\mount /Add-Package /PackagePath:"C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\winpe-legacysetup.cab"
REM dism.exe /image:c:\winpe_x64\mount /Add-Package /PackagePath:"C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-us\winpe-legacysetup_en-us.cab"
dism.exe /image:c:\winpe_x64\mount /Add-Package /PackagePath:"C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\winpe-mdac.cab"
dism.exe /image:c:\winpe_x64\mount /Add-Package /PackagePath:"C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-us\winpe-mdac_en-us.cab"
dism.exe /image:c:\winpe_x64\mount /Add-Package /PackagePath:"C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\winpe-pppoe.cab"
dism.exe /image:c:\winpe_x64\mount /Add-Package /PackagePath:"C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-us\winpe-PPPOE_en-us.cab"
dism.exe /image:c:\winpe_x64\mount /Add-Package /PackagePath:"C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\winpe-scripting.cab"
REM dism.exe /image:c:\winpe_x64\mount /Add-Package /PackagePath:"C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-us\winpe-scripting_en-us.cab"
REM dism.exe /image:c:\winpe_x64\mount /Add-Package /PackagePath:"C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\winpe-setup.cab"
REM dism.exe /image:c:\winpe_x64\mount /Add-Package /PackagePath:"C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-us\winpe-setup_en-us.cab"
REM dism.exe /image:c:\winpe_x64\mount /Add-Package /PackagePath:"C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\winpe-setup-client.cab"
REM dism.exe /image:c:\winpe_x64\mount /Add-Package /PackagePath:"C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-us\winpe-setup-client_en-us.cab"
REM dism.exe /image:c:\winpe_x64\mount /Add-Package /PackagePath:"C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\winpe-setup-server.cab"
REM dism.exe /image:c:\winpe_x64\mount /Add-Package /PackagePath:"C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-us\winpe-setup-server_en-us.cab"
dism.exe /image:c:\winpe_x64\mount /Add-Package /PackagePath:"C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\winpe-wmi.cab"
dism.exe /image:c:\winpe_x64\mount /Add-Package /PackagePath:"C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-us\winpe-wmi_en-us.cab"

dism.exe /image:c:\winpe_x64\mount /Get-Packages

REM copy "C:\Program Files\Windows AIK\Tools\amd64\imagex.exe"
"c:\winpe_x64\mount\Windows\System32"
REM Copy DISM instead of Imagex
md "c:\winpe_x64\mount\ghost\"
copy "c:\winpe\ghost\*.*" "c:\winpe_x64\mount\ghost\*.*"
dism.exe /Unmount-Wim /MountDir:c:\winpe_x64\mount /Commit

pause

md "c:\winpe_x64\ISO\"
md "c:\winpe_x64\ISO\Boot"
md "c:\winpe_x64\ISO\sources\"
copy c:\winpe\winpe.wim c:\winpe_x64\ISO\sources\boot.wim
copy %DeploymentKit%\"Deployment Tools\amd64\Oscdimg\efisys.bin" c:\winpe_x64\ISO\Boot
copy %DeploymentKit%\"Deployment Tools\amd64\Oscdimg\efisys_noprompt.bin" c:\winpe_x64\ISO\Boot
copy %DeploymentKit%\"Deployment Tools\amd64\Oscdimg\etfsboot.com" c:\winpe_x64\ISO\Boot
copy %DeploymentKit%\"Windows Preinstallation Environment\amd64\Media\bootmgr" c:\winpe_x64\ISO\
copy %DeploymentKit%\"Windows Preinstallation Environment\amd64\Media\bootmgr.efi" c:\winpe_x64\ISO\
copy %DeploymentKit%\"Windows Preinstallation Environment\amd64\Media\Boot\BCD" c:\winpe_x64\ISO\Boot
copy %DeploymentKit%\"Windows Preinstallation Environment\amd64\Media\Boot\boot.sdi" c:\winpe_x64\ISO\Boot
REM copy %DeploymentKit%\"Windows Preinstallation Environment\amd64\Media\Boot\bootfix.bin" c:\winpe_x64\ISO\Boot
xcopy /e /s /y %DeploymentKit%\"Windows Preinstallation Environment\amd64\Media\Boot\fonts\*.*" "c:\winpe_x64\ISO\Boot\fonts\*.*"
xcopy /e /s /y %DeploymentKit%\"Windows Preinstallation Environment\amd64\Media\EFi\*.*" "c:\winpe_x64\ISO\EFI\*.*"

 

%DeploymentKit%\"Deployment Tools\amd64\oscdimg\oscdimg" -m -o -u2 -udfver102 -bootdata:2#p0,e,bc:\winpe_x64\ISO\Boot\etfsboot.com#pEF,e,bc:\winpe_x64\ISO\Boot\efisys.bin c:\winpe_x64\ISO c:\winpe_x64\winpe_x64.iso

You have the option to create the script using the above command lines for ease of use.
Now, the ISO image is generated and ready to burn on a thumb drive or a CD. You can also use the image in the VM environment. Use any third party CD/DVD burning tool to burn the ISO on the thumb drive or CD.
Boot the UEFI- based computer using a created media and you are ready to execute the ghost use cases

 

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Comments

Nov 25, 2013 02:37 PM

Go to this Article below, it has the instructions on how to implement winpe4, but we are currently having an issue with x86 servers where bootwiz will not create an environment. But it is working well under x64 servers.

http://www.symantec.com/business/support/index?page=content&id=HOWTO85100

Related Entries and Links

No Related Resource entered.