Booting Windows PE Using Windows 7 AIK: A Step-by-Step Guide

Table of Contents
š ļø Working with Windows PE: Troubleshooting Windows Offline
There are times when you need to troubleshoot or service a Windows operating system without booting into it. Certain maintenance or recovery tasks can only be performed while the system drive is offlineānot in active use. If youāve ever worked with Linux boot discs, youāll find Windows PE (Preinstallation Environment) to be a familiar and powerful tool.
Windows PE is a lightweight version of Windows that boots from a CD/DVD or USB drive. By default, it loads into a simple Command Prompt interface š„ļø. This is where knowing your way around command-line tools really pays off.
With Windows PE, you can:
- š§ Prepare and partition hard drives
- š Access and recover files
- š§¹ Run repair tools like
chkdsk
(Check Disk) andsfc
(System File Checker) - š¦ Capture and deploy Windows images
- š¤ Automate tasks using custom scripts
Many Microsoft troubleshooting guides reference Windows PE, so having a bootable version ready can be a real lifesaver in emergencies š.
š¾ Getting Windows PE 3.0: Downloading and Setting Up Windows 7 AIK
To work with Windows PE 3.0 (based on Windows 7 SP0), youāll need to download and install the Windows Automated Installation Kit (AIK) for Windows 7. š ļø
š” Note: Windows PE comes in various versions. If you want a newer versionālike one based on Windows 8.1 Update 1āyouāll need the appropriate ADK (Assessment and Deployment Kit). For example, download the Windows ADK for Windows 8.1 Update package to get that version.
š„ Downloading the Files
Head to the links at the bottom of the page to download the files. Youāll get an ISO file named:
š KB3AIK_EN.iso
(approx. 1.7 GB)
š» Mounting the ISO
Depending on your OS:
- Windows 8.1 / Windows 10 / Windows 11:
Right-click the ISO file and select āMountā. This will open it like a virtual discāno extra software needed! ā - Windows 7:
Youāll need third-party software to mount ISO files. I recommend using:
š§ ImDisk Virtual Disk Driver ā a lightweight, reliable tool for the job.
š Installing Windows AIK
Once the ISO is mounted and you can see the contents:
- Open
StartCD.exe
- In the launcher, click “Windows AIK Setup” on the left panel
- Follow the prompts to install the Windows 7 AIK
Youāre now ready to start building your Windows PE 3.0 environment! šļø
š Accessing the Windows PE Documentation
Now that youāve installed Windows 7 AIK, itās time to dive into the documentation and learn how to build your Windows PE environment. š ļø
š§ Where to Find the Guide
You can access the Windows PE Userās Guide in two ways:
š Option 1: From the Start Menu
- Open the Start Menu
- Navigate to:
⤠Microsoft Windows AIK
⤠Select Windows PE Userās Guide
š Option 2: From File Explorer
- Open File Explorer
- Go to:
C:\Program Files\Windows AIK\Docs\CHMs
- Open the file:
WinPE.chm
š What to Read First
Once the guide is open:
- Expand:
š Windows Preinstallation Environment (Windows PE) Userās Guide - Select:
š§ Windows PE Build Environment - Scroll to the section titled:
⤠āTo build a Windows PE Build Environmentā
This section explains how to prepare the source files for building your custom Windows PE image. It’s a great starting point.
š” Pro Tip: Explore the rest of the documentation while youāre at it! The guide includes plenty of useful information on customization, scripting, image capture, and deployment.
š Obtaining Windows PE Source Files with copype.cmd
Once the Windows 7 AIK is installed, the next step is to generate the source files for your Windows PE build. Weāll use the copype.cmd
script to do this. š§±
š Step 1: Open an Elevated Command Prompt
Make sure to open Command Prompt as Administrator. This is required to run the script successfully.
š Step 2: Navigate to the PETools Directory
Run the following command to navigate to the folder containing the copype.cmd
script:
cd C:\Program Files\Windows AIK\Tools\PETools
š Make sure to include the quotes if your folder path contains spaces.
šļø Step 3: Run copype.cmd
Now youāll generate the source files by specifying:
- The architecture (
x86
,amd64
, oria64
) - The destination folder where files should be placed
Example for creating a 32-bit (x86) build in C:\TEMP\winpe_x86
:
copype.cmd x86 C:\TEMP\winpe_x86
š This command will create the winpe_x86
directory (if it doesnāt exist) and populate it with the essential files needed for a Windows PE environment.
š Step 4: Inspect the Output
Navigate to the output folder:
cd C:\TEMP\winpe_x86
Youāll see a basic folder structure, but thereās a critical piece missing: the boot image.
š¦ Whatās Missing? The boot.wim
File
Although copype.cmd
gives us most of what we need, it doesnāt automatically place the boot.wim
file into the ISO\sources
folder.
Hereās what you need to know:
- Inside the output folder, under
winpe_x86\ISO\sources
, youāll notice there’s noboot.wim
yet. - However, in the parent folder, youāll find a file named:
winpe.wim
ā
This is your boot.wim
! Simply:
- Copy and rename
winpe.wim
toboot.wim
- Place it into:
C:\TEMP\winpe_x86\ISO\sources\
š¼ļø Why this extra step? The idea is that you may customize the imageāby injecting drivers, tools, scripts, or even changing the Windows PE backgroundābefore it’s finalized as a bootable image.
šØ Customizing Windows PE
If you prefer a graphical method for modifying your Windows PE image, you can use 7-Zipāa powerful, free compression toolāto open and edit .wim
files directly. š§©
š§ Modifying the Background Image
- Open
winpe.wim
with 7-Zip
Navigate to thewinpe_x86
folder and right-click onwinpe.wim
. Choose Open with ā 7-Zip File Manager. - Navigate to the BMP File
Inside 7-Zip, go to: Windows\System32\winpe.bmp - Replace the Background Image
- Delete the existing
winpe.bmp
- Drag and drop your own custom image into the same location
- š¼ļø Make sure your image has the same name (
winpe.bmp
) and is in.bmp
format
- Delete the existing
šØ This image will be used as the boot-time background when Windows PE loads into RAM.
š¦ Finalizing the Modified Image
Once youāre done customizing the contents of winpe.wim
:
- Copy and Rename the File
Move your updatedwinpe.wim
to theISO\sources
folder and rename it toboot.wim
:
From: C:\TEMP\winpe_x86\winpe.wim
To: C:\TEMP\winpe_x86\ISO\sources\boot.wim
ā Your customized Windows PE image is now ready to be packaged into a bootable ISO!
šæ Generate a Bootable Windows PE ISO with Oscdimg.exe
You donāt need third-party software like ImgBurn to create a bootable ISOāWindows 7 AIK includes a built-in command-line utility called Oscdimg.exe
that does the job perfectly. āļø
š Where to Find Oscdimg.exe
Oscdimg.exe
is located in the AIK Tools directory under architecture-specific folders:
C:\Program Files\Windows AIK\Tools\x86\
C:\Program Files\Windows AIK\Tools\amd64\
C:\Program Files\Windows AIK\Tools\ia64\
š” Use the version that matches the architecture of your PE build (e.g.,
x86
for a 32-bit build).
š§¾ Example Command to Create the ISO
Open Command Prompt as Administrator, navigate to the appropriate folder, and run:
Oscdimg.exe -bC:\TEMP\winpe_x86\ISO\boot\etfsboot.com -p00 -u1 -udfver102 C:\TEMP\winpe_x86\ISO C:\TEMP\winpe_x86.iso
š Command Breakdown
Letās break down what each part of the command does:
Option | Purpose |
---|---|
-b<path> | Specifies the boot sector file. For BIOS, use etfsboot.com . |
-p00 | Sets the platform ID to BIOS (00 ). Use EF for UEFI systems. |
-u1 | Uses UDF file system format (Unicode support, long filenames). |
-udfver102 | Sets UDF version to 1.02, ensuring compatibility. |
C:\TEMP\winpe_x86\ISO | The folder containing all files to be packaged into the ISO. |
C:\TEMP\winpe_x86.iso | The output ISO file that will be created. |
ā UEFI Note
UEFI boot requires:
- Platform ID:
EF
- Boot file:
efisys.bin
However, Windows PE based on Windows 7 x86 does not support UEFI, so:
- You wonāt find
efisys.bin
in your x86 AIK folder - Stick with BIOS mode using
etfsboot.com
ā Once the command completes, your bootable ISO will be ready at:
ā Conclusion
With the steps we’ve coveredāinstalling Windows AIK, generating and customizing your Windows PE environment, and creating a bootable ISOāyou now have a powerful tool at your disposal for offline Windows troubleshooting, imaging, and recovery. Whether youāre adding scripts, drivers, or simply changing the background, Windows PE can be tailored to fit almost any technical workflow.
šæ Final Thoughts
Mastering Windows PE is like unlocking a hidden Swiss Army knife for Windows systems. It’s lightweight, flexible, and immensely usefulāespecially when you need full control outside the confines of a live operating system. Once you’re comfortable with it, you’ll wonder how you ever managed without it.

My name is Dex, author at WinReflection.
I am a Christian, conservative, truth-seeker, and problem-solver who is not afraid to be vocal about important or controversial issuesāsilence leads to death. There’s more to life than the worldly status quo, and that’s why many are sad and depressedāthey’re suffocating. Truth and purpose can bring fresh air into one’s life, and that’s my mission. My sidebar content should not trigger you, the proof is all there.
šĀ John 3:16: For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life.
Leave a Reply
Want to join the discussion?Feel free to contribute!