Showing posts with label Windows PE. Show all posts
Showing posts with label Windows PE. Show all posts

How To Build Windows PE 3.0 Bootable CD

Tuesday, June 25, 2013

What I understand about Windows PE is the replacement for Microsoft DOS boot disk. Compared to Microsoft DOS boot disk which only can be used to prepare the computer hard disk for installation of old version of Windows OS, the Windows PE can do more than that. With Windows PE you also can capture the Windows OS image for future deployment and troubleshoot the Windows OS that cannot boot.

So far, the Microsoft Corporation has produced FOUR releases of Windows PE. The latest release, Windows PE 4.0 is for Windows 8. But, in this article I will only cover about Windows PE 3.0 which is suitable for use to capture, deploy and troubleshoot the Windows 7 OS. What to be covered about Windows PE 3.0 in this article is related to HOW TO BUILD WINDOWS PE 3.0 BOOTABLE CD. OUR TARGET IS TO BUILD THE WINDOWS PE 3.0 BOOTABLE CD THAT CAN CAPTURE THE WINDOWS 7 64-BIT EDITION IMAGE FILE (.WIM).




What You Need

  1. Microsoft Windows Automated Installation Kit (WAIK) for Windows 7. You can download it here.

    Note:
    If you want to deploy Windows 7 with Service Pack 1 into your target computer, you need to install Microsoft WAIK for Windows 7 SP1.


  2. Software burner. If you want the free software burner, you can download here.


  3. An empty CD / DVD RW disc.


  4. Your computer must have CD / DVD writer, so you can burn Windows PE into the CD or CD-RW.




Before The Procedures

  1. You have to install Microsoft WAIK for Windows 7 into your computer. Your computer can run either Windows XP, Windows Vista or Windows 7. I has installed this software in my laptop that has Windows 7 Professional 64-bit installed. 

    Capture 




The Procedures

  1. Click Capture --> click All Programs –> under the list of programs click folder Microsoft Windows AIK.

    Capture


  2. Right click on the Deployment Tools Command Prompt –> click Run as Administrator.

    Capture


  3. This will open the command prompt interface belongs to Microsoft WAIK for Windows 7. See below

    Capture


  4. Inside the command prompt, type copype.cmd amd64 c:\winpe-amd64 –> press Enter. This process will create the directory folder, winpe-amd64 in the c:\ drive

    Capture


  5. Now you will notice the default directory inside the command prompt is replaced. See below

    Capture


  6. Before you start mount the image file (winpe.wim) into the folder directory c:\winpe-amd64, it is good to know the details information about the image file especially its index number. So, you need to type the command below (dism /get-wiminfo) and press Enter 

    Capture

    Capture


  7. Now, you have notice the index number of the image file. In this step, you are going to mount the image file, winpe.wim. Type the command below (dism /mount-wim) and press Enter

    Capture  

    Capture

    Note:
    The DISM command in step 7 will mount the image file, winpe.wim that has the index number 1 into the folder directory c:\winpe-amd6\mount. The index number can be viewed by execute the DISM command in step 6.


  8. Now, you have mounted the image file (wimpe.wim). It is necessary to check either it had been mounted correctly or not. To check the status, you need to type the command below (dism /get-mountedwiminfo) and press Enter.

    Capture

    Capture


  9. Now, you notice that the image file you had mounted is in good condition. If you want to add the Windows AIK packages (cabinet file - .cab) to the image file (winpe.wim), you need to use the command dism /add-package. Let say, you want to add the Windows AIK package below.

    Capture

    First of all you need the verify the package path. For example the Windows AIK package, winpe-wmi.cab is located inside c:\Program Files\Windows AIK\Tools\PETools\amd64\WinPE_FPs. Second, you need to add together its language pack. For the example when you add the package winpe-wmi.cab you also need to add its language pack, winpe-wmi_en-us.cab. The path to this file is c:\Program Files\Windows AIK\Tools\PETools\amd64\WinPE_FPs\en-us.

    After you notice the required paths for the package and its language pack, now you can add both of them using dism /add-package command. You have to type both of the commands below and press Enter after you type each of them. 

    Capture

    Capture

    After you type the command above, the winpe-wmi.cab file will be added to the winpe.wim image file. Then, you will add its language pack. Type the command below and press Enter. 

    Capture

    Capture

    After you type the command above, the winpe-wmi_en-us.cab file will be added to the winpe.wim image file.

    Note:
    The step 9 is optional and I just want to show you how to add the Windows AIK package into the image file (winpe.wim) you mounted. If you want to get more information about the other Windows AIK packages you can click here.


  10. If you want to check the packages you had added or the list of package inside the winpe.wim image file, you can use the command (dism /get-package) below and press Enter.

    Capture

    Capture


  11. You also can add the utility that you think useful for you. For example, if you want to use Windows PE 3.0 bootable CD to capture and deploy the Windows 7 image, you need to add the imagex.exe utility.

    For the purpose of that, you need to copy the utility from c:\Program Files\Windows AIK\Tools\amd64\imagex.exe and paste it into c:\winpe-amd64\mount\Windows\System32. Type the command (copy) below and press Enter. 

    Capture

    Capture

    Note:
    This is an optional but for the sake of learning and give information, it is good to present in this article. Besides adding the imagex.exe utility that come in form of command line interface, you also can add the gimagex.exe utility. This utility has the same function like imagex.exe but the difference is, it come in form of graphical user interface.

    If you want to add this utility in the winpe.wim image, you can download it here. After download, you will get the zip file named gimagex.

    Capture
     
    Extract the zip file and you will get the folder named install. To copy the gimagex.exe utility, use the copy command. Type the command (copy) below and press Enter.

    Capture

    Capture

    When you run the command above, you will copy the utility gimagex.exe from c:\install\x64\gimagex.exe and paste it into mount folder, c:\winpe-amd64\mount\windows\system32.


  12. After you finish add the utility and packages required, you can un-mount the winpe.wim image file that you had edited. To un-mount the image file, type the command (dism /unmount-wim) below

    Capture

    Capture


  13. You had finished edit the winpe.wim image file and had un-mounted it. Now you will copy the edited image file into the folder c:\winpe-amd64\ISO\sources and rename it from winpe.wim to boot.wim. To accomplish this task you need to type the command (copy) below and press Enter.

    Capture

    Capture


  14. Now, you can start building the Windows PE 3.0 bootable file. This file actually will come out in form of .ISO file. To build the ISO file for Windows PE 3.0, type the command (oscdimg) below and press Enter

    Capture

    Capture


  15. Please wait until the ISO file building process complete. Then, you will notice the ISO file named winpe-64bit.iso inside the folder c:\winpe-amd64.

    Capture

    Now, you can burn the ISO file using software burner.

How To Create Windows PE 2.0 Bootable USB

Tuesday, July 24, 2012

Before this, I ever present to you in my article about how to create Windows PE boot CD. But, for your information, you also can make Windows PE bootable from USB thumb drive.

You simply can create Windows PE bootable CD or Windows PE boot USB by doing the following steps in tandem

  1. Replacing the boot.wim file (c:\winpe\ISO\sources) with winpe.wim file (c:\winpe).
  2. Copy and paste the additional utility such as imagex.exe into c:\winpe\ISO folder.
  3. Create an ISO image file by converting the c:\winpe\ISO folder into winpe.iso file.
  4. Burn or extract the ISO image (winpe.iso) into CD or USB thumb drive.


The above steps is only the summary
of what you need to do when you want to create Windows PE bootable CD or Windows PE boot USB. For the complete guide you can follow the procedures below.

Now, in this article I would like to show you HOW TO CREATE WINDOWS PE BOOTABLE USB.




What You Need

  1. Empty USB thumb drive with at least 1GB size.





Before The Procedures

  1. You need to install Microsoft WAIK into your computer.


  2. You should create partition on your USB thumb drive using the Microsoft Diskpart. Click here if you need the guide.


  3. You need to verify the drive letter for your USB thumb drive. In this case the drive letter is H:

    Capture





The Procedures

At this stage, you had installed Microsoft WAIK into your computer system and had created the partition on your USB thumb drive. Now, with USB thumb drive attached to your computer USB port, you should follow the procedures below in order to create Windows PE ISO image file.

  1. Click Capture --> click All Programs –-> click Microsoft Windows AIK folder

    Capture


  2. Right click on Windows PE Tools Command Prompt –-> click Run as administrator –-> Windows PE Tools Command Prompt will launch. See below.

    Capture


  3. Like above, type copype.cmd x86 c:\winpex86 –-> press Enter button --> the directory c:\winpe> will appears like below

    Capture

    Note: 
    After you run the command in step 3, you will notice the folder named winpe inside your c:\ drive (c:\winpe). See below

    Capture


  4. Now, you need to replace the file boot.wim inside c:\winpe\ISO\sources with the file winpe.wim inside c:\winpe. For the purpose of that you need to type the following

    copy c:\winpe\winpe.wim c:\winpe\ISO\sources\boot.wim /y –-> press
    Enter button.

    Capture


  5. Adding an imagex.exe program to Windows PE 2.0 bootable USB is highly recommend. To do so, type the following

    copy “c:\program files\windows aik\tools\x86\imagex.exe” c:\winpe\iso –-> press
    Enter button.

    Capture 
    Note: 
    Please see the different when I use copy command in step 4 and step 5. In step 4, I do not use the symbol “ ” because the file that need to be copied will be pasted into another subfolder inside the SAME FOLDER (c:\winpe).

    At step 5, the file I need to copy and paste is come from another folder (outside c:\winpe). So the symbol “ ” is need to be put between the said file’s path.


  6. At this step you will create the ISO image file for Windows PE. So please type the following

    oscdimg –n –h –bc:\winpe\etfsboot.com c:\winpe\iso c:\winpe\winpe.iso –-> press
    Enter button.

    Capture

    Note:
    After you execute the step 6, you will notice the ISO image file inside c:\winpe

    Capture


  7. You have finish create the Windows PE ISO image file. So, type exit –-> press Enter button.

    Capture





After The Procedures

After you finish the steps above, you must extract the ISO image file, winpe.iso into your USB thumb drive. To do so, you can use the zip file utility such as Winzip or 7zip.

I personally used the 7zip utility in my Windows 7 computer to extract the image.

  1. Download and install the 7zip utility for Windows into your computer system.


  2. With the USB thumb drive still attach to your computer USB port, open the c:\winpe folder –-> right click the winpe.iso image file

    Capture


  3. Click 7-zip –-> click Extract files… –-> the 7zip extract’s box appears. See below.

    Capture


  4. Click the button Capture --> the box Browse For Folder appears.

    Capture

     
  5. Based on above, click Removable Disk (H:) as a specified location where you want to extract the winpe.iso file –-> click OK –-> click OK –-> the 7zip utility is extracting the image file.

    Capture
Related Posts Plugin for WordPress, Blogger...