What Is Windows PE (WinPE) and How Does It Work?

May. 25, 2021



Microsoft has released a milliondifferent iterations of Windowsfor various purposes over the past few decades. While some of them are rather well-known, others remain relatively obscure. Today, we will talk about one such Windows variant, which is called Windows PE. We will explain all you need to know about Windows PE (also known as WinPE), its history, its relevance, and what it is used for today. We will also talk about how it is different from the regular version of Windows.

In this article, we will take a deep dive into Windows PE and learn about how it works. We will also discuss other technical details about the software, including its features, benefits, limitations, hardware requirements, and more. Finally, we will also see how WinPE is similar or dissimilar to the mainstream Windows distributions. So without any further delay, let’s dive right in.

Windows Preinstallation Environment, also known as Windows PE orWinPE, is alightweight version of Windowsused to install, deploy, and repair Windows and Windows Server installations on desktops, servers, and workstations. It also comes in handy fortroubleshooting Windowsoperating systems in offline environments. With that said, one can think of Windows PE as a lightweight version of Windows with limited functionality for installation and recovery purposes.Windows PE 10.0 Based on Windows 10 / Image Courtesy:Microsoft

Originally developed as a replacement for MS-DOS boot disks, you can boot up WinPE via USB flash drives, CD-ROM, and hard disks. Thefirst release of WinPE was for the XP environment, while the latest version supports all consumer editions of Windows 10 (Home, Pro, Enterprise, and Education), as well as Windows Server and other iterations of Windows 10. While Microsoft makes it available free of charge, you cannot use it as a primary operating system. Why, you ask? Well, that’s because it lacks the critical features of a full-fledged desktop OS.

Some of the other notable uses of Windows PE (WinPE) include capturing and applying Windows images (ISOs), modifying the OS when it’s not running, setting up automatic recovery tools, and recovering data from unbootable devices. It also lets you add your own custom shell or GUI to automate these kinds of tasks.

A successor to the Windows Recovery Console, Windows Recovery Environment (WinRE) is a set of tools based on Windows PE. It helpsdiagnose and recover Windows PCs from critical errorsthat may prevent the OS from booting successfully. WinRE is built into the newer versions of Windows, starting with Vista, and you may boot it from hard disks, optical media (CDs, etc.), and PXE (Preboot eXecution Environment).

WinRE features include automatic repair of Windows installations,system restore, system image recovery, Windows memory diagnostic tool, and more.

WinPE boots into both UEFI and legacy BIOS mode, which means you can choose either based on your setup. You can check out our detailed article onUEFI vs BIOS, where we have discussed the similarities and differences between the two.

As for WinPE, it first loads the boot sector before the Bootmgr takes control of boot configuration. Finally, the Winload.exe process within boot.wim loads the Hardware Abstraction Layer (HAL). This helps load the registry hive and boot drivers and create a pathway for WinPE installation.

Once WinPE is up and running, the Ntoskrnl.exe kernel file is loaded, and SMSS (Session Manager) takes control of the operation. The first thing it does is create a Winlogon for user access. It can also load any registry file to configure the setup. After that, the user can run a command-line instruction to launch the setup.exe file to install Windows.

Then, Windows will run winpeshl.exe to initiate the default startnet.cmd command that starts Wpeinit.exe. Wpeinit installs Plug and Play devices, processes Unattend.xml settings, and loads network resources, thereby completing the WinPE boot process.

WinPE is a definitive step up from the DOS-based recovery options, which lacked support for many of the critical features in modern operating systems. That includes support for TCP/ IP, modern device drivers, 64-bit environments, latest file systems, and a lot more. Windows PE runs thecommand lineenvironment and supports the following Windows features:

Windows PE has the same requirements as the corresponding version of desktop Windows, but with a few exceptions. Here are a few things you should remember while using WinPE:

As mentioned already, Windows PE is not a general-purpose operating system, either on PCs, as a thin client, or an embedded OS. Then again,WinPE is not intended to be a replacement for Windows(client or server) in the first place. It is only suitable for large-scale Windows deployment and recovery of Windows installations on desktops, laptops, servers, and workstations.

To prevent its use as a production operating system,“Windows PE automatically stops running the shell and restarts after 72 hours of continuous use. This period is not configurable,”says Microsoft in its WinPE documentation.

Another limitation is that, by default, all changes are lost when WinPE reboots. That includes changes to drivers, drive letters, and the Windows PE registry. You can, however, make lasting changes by customizing the software. Check out theofficial Microsoft websitefor more details on the subject. Also, note that the default WinPE installation uses the FAT32 file format, which only supports up to 4GB file size and up to 32GB disk drives.

Microsoft further notes that Windows PE does not support the following features and functions:

Starting with Windows 10 version 1809, Microsoft is offering WinPE as a free add-on to the Windows Assessment and Deployment Kit (ADK). Users can install the ADK and the WinPE add-ons to start working with the software.

To get Windows PE,install the ADKand choose the Deployment Tools and Windows Preinstallation Environment options. It is worth pointing out that prior to Windows 10 version 1809,WinPE was included as part of the ADK, which means you did not have to download it separately to get started. That is no longer the case.

You can check out our in-depth guide to learn how to create a bootable WinPE USB drive or rescue disk to troubleshoot your Windows computer.

Windows PE: The Windows Distribution You Didn’t Know Existed!

Windows PE: The Windows Distribution You Didn’t Know Existed!

That’s all you need to know about Windows PE. This installation of Windows is not designed to be a standalone operating system, not even as a thin client. However, WinPE is great at what it does, making it a helpful tool to troubleshoot and recover Windows computers faced with critical errors. So have you ever needed to use Windows PE on your computer at home or work? Let us know in the comments down below.

Passionate techie. Professional tech writer. Proud geek.