Creating a Windows Pre-Installation Environment Startup Disc

1. You first need to create a startup disc for the Windows Pre-Installation Environment (WinPE). To do this, run the Windows 7 AIK installer and select Windows AIK Setup.

2. When the Windows 7 AIK is installed, select Microsoft Windows AIK from the Start menu, right-click Deployment Tools Command Prompt, and select Run As Administrator.

3. In the command prompt window that appears, type C: and press Enter. Then type cd .\Program Files\Windows AIK\Tools, and press Enter again to access the AIK folder.

4. Use the Copype.cmd script, changing the arguments as necessary to match the locations for your WinPE files and the desired destination folder. (Valid versions include 32-bit [x86] or 64-bit [x64]. Other supported types are amd64 and ia64.) Type copype.cmd x86 C:\winpe_x86 or copype.cmd x64 C:\winpe_x64, and press Enter.

5. The command in step 4 creates a folder structure in a new folder. Next, to copy the base WinPE image to this folder structure, type copy C:\winpe_x86\winpe.wim C:\winpe_x86\ISO\sources\bot.wim, and press Enter.

6. Next, you need to add disk boot files to the files you have created in steps 4 and 5, ready for burning to a CD or DVD.
a. Type dism /Mount-wim /Winfile:C:\winpe_x86\ISO\sources\boot.wim / index:1 /MountDir:C:\winpe_x86\mount, and press Enter.
b. Type copy C:\winpe_x86\ISO\bootmgr C:\winpe_x86\mount, and press Enter.
c. Type mkdir C:\winpe_x86\mount\boot, and press Enter.
d. Type xcopy /cherky C:\winpe_x86\ISO\boot C:\winpe_x86\mount\boot, and press Enter.

7. Add the ImageX disc image creation program to the folder by typing copy “C:\Program Files\Windows AIK\Tools\x86\ImageX.exe” C:\winpe_x86\mount, and pressing Enter.

8. Next, create the boot configuration data (BCD) file for the disc. Type the following commands, pressing Enter after each one.
a. Del c:\winpe_x86\mount\boot\BCD
b. Bcdedit /createstore c:\winpe_x86\mount\boot\BCD
c. Bcdedit /store c:\winpe_x86\mount\boot\BCD -create {bootmgr} /d “Boot Manager”
d. Bcdedit /store c:\winpe_x86\mount\boot\BCD -set {bootmgr} device boot
e. Bcdedit /store c:\winpe_x86\mount\boot\BCD -create /d “WINPE” -application osloader

9. The command in step 8e returns a GUID value. Type the following commands, substituting the GUID value returned by step 8e for {GUID}. The GUID should look similar to {21EC2020-3AEA-1069-A2DD-08002B30309D} but will contain different numbers and letters. Press Enter on your keyboard after each step.
a. Bcdedit /store c:\winpe_x86\mount\boot\BCD -set {GUID} osdevice boot
b. Bcdedit /store c:\winpe_x86\mount\boot\BCD -set {GUID} device boot
c. Bcdedit /store c:\winpe_x86\mount\boot\BCD -set {GUID} path \ windows\system32\winload.exe
d. Bcdedit /store c:\winpe_x86\mount\boot\BCD -set {GUID} systemroot \ windows
e. Bcdedit /store c:\winpe_x86\mount\boot\BCD -set {GUID} winpe yes
f. Bcdedit /store c:\winpe_x86\mount\boot\BCD -displayorder {GUID} -addlast

10. Finally, create an ISO disc image that you can burn to a CD or DVD. Type oscdimg
–n –m –o –bC:\winpe_x86\etfsboot.com C:\winpe_x86\mount C:\winpe_x86\
winpe_x86.iso, and press Enter.

For Intel Itanium–based architecture, replace etfsboot.com with efisys.bin. If you are building an ISO to an AMD Extensible Firmware Interface (EFI) ISO instead, type oscdimg.exe –bC:\winpe-x64-efi\efisys.bin –pEF –u1 –udfver102 C:\winpe-x64-efi\ISO x64-efi-winpe.iso, and press Enter.

11. You will now have an ISO file in the C:\winpe_x86 folder that you can double-click to start Windows Disc Image Burner.

Source of Information :  Microsoft Press - Troubleshooting Windows 7 Inside Out

No comments:

Cloud storage is for blocks too, not just files

One of the misconceptions about cloud storage is that it is only useful for storing files. This assumption comes from the popularity of file...