video notes:
Step 1: Copy Windows PE from the Installation Media
-Create a directory for the Windows PE image and a mount point
mkdir c:\winre_image
mkdir c:\winre_mount
-Copy the Windows PE image from the installation media using ImageX
imagex.exe /export /boot e:\sources\boot.wim 2 c:\winre_image\winre.wim “Windows Recovery Environment”
-Mount the image using ImageX
imagex /mountrw c:\winre_image\winre.wim 1 c:\winre_mount
Step 2: Add Windows RE shell script
The Windows PE we copied in step 1, does not launch Windows RE automatically. In this step, we will create a script
called winpeshl.ini that will launch the Windows RE shell at startup.
1 - By using a text editor, create a file called winpeshl.ini that contains the following text:
[LaunchApp]
AppPath=x:\sources\recovery\recenv.exe
2 - Copy this file to \Windows\System32 directory in your mounted Windows RE directory. For example,
copy winpeshl.ini c:\winre_mount\Windows\System32
Step 3: Add mass-storage drivers (optional)
If necessary, you can include third-party drivers (.inf) in your Windows RE image by using the peimg.exe /inf command. For example,
peimg.exe /inf= C:\winre_x86\mount\Windows
Where is the location of the. inf file.
Step 4: Add custom tools to Windows RE (optional)
You can customize Windows RE shell by creating an .xml file called WinREConfig.xml. WinREConfig.xml enables you to define custom support and diagnostic tools within Windows RE. This step is optional. For more information, refer to the Windows RE documentation in the Windows AIK.
Step 5: Save changes to the image
Unmount the image by using ImageX. For example,
imagex.exe /unmount /commit c:\winre_mount
That's it! The WinRE.wim file is now ready to be deployed on the harddisk or a WDS server. Let us know if these updated instructions do not work for you.[u]