Windows PE 2.0: a tiny version of Windows for system maintenance

Please install the flash player

James Bannan22 August 2006, 4:28 AM

Few people know it, but when you boot off the Vista install DVD, you're booting into a different version of Windows altogether: Windows PE 2.0. Stripped away from the Vista installer, it's a remarkably powerful, compact OS.


Few people know it, but when you boot off the Vista install DVD, you're booting into a different version of Windows altogether: Windows PE 2.0.

It's based on the Vista kernel, but it's extremely compact. It provides read/write access to NTFS filesystems, a wide range of 32- and 64-bit hardware drivers, network connectivity and the ability to run both 32- and 64-bit applications.

However, stripped away from the Vista installer, it's also a very versatile tool for administrators. It allows troubleshooting, installation and system recovery, and its small size means it can be run from CD, USB key or even via network boot.

PE has actually been around since the release of XP, but most administrators have avoided using it, instead preferring more mature third-party management and installation tools.

The newest version of Windows PE (version 2.0), is different. Along with tools which I’ve discussed previously, ImageX and System Image Manager (SIM), Windows PE 2.0 is bundled in the Windows Automated Installation Kit (WAIK), and is an integral part of both the WAIK and Vista itself.

How to get Windows PE

To use Windows PE 2.0, you need to get your hands on the Windows Automated Installation Kit (WAIK), which is a free download from Microsoft.

Finding WinPE on your machine

Once the WAIK is installed, the WinPE folder structure is available in C:\Program Files\Windows AIK\Tools. The main folders needed are the architecture folders (x86, ia64 and amd64), and the PETools and Servicing folders.

Building your own bootable WinPE 2.0 environment

The next step is to create the actual WinPE tool, based on the architecture you require. This is done using the COPYPE.CMD command, which resides in the PETools folder. Navigate there in a command window, or just launch the “Windows PE Tools Command Prompt” link from Start, Program, Microsoft Windows AIK.

winpe02_small.png

The COPYPE.CMD syntax is “COPYPE.CMD ”, so in this case I’m using “COPYPE.CMD x86 C:\Temp\x86_PE”. The destination folder gets created as part of the process, and shouldn’t already exist. Files are expanded and copied into the correct folder structure - the whole process takes no more than a minute or two.

winpe03_small.png

The resulting x86_PE folder contains the WINPE.WIM file, a MOUNT folder which you can use to mount the WIM via ImageX, an ISO folder which contains all the files needed to create a WinPE ISO image, and the BIN file needed to make the ISO bootable.

winpe04_small.png

The ISO is created using OSCDIMG - a command-line application bundled with the WinPE tools. There are quite a few command arguments available, but the most important ones are:

  • -b (specify location of boot file)
  • -n (enable long filenames)
  • -o (optimise storage by ignoring duplicate files -- this is one of the cool standard features of the WIM format).

So the syntax I’m using is “OSCDIMG -bc:\temp\x86_pe\etfsboot.com -n -o c:\temp\x86_pe\iso c:\temp\x86_pe.iso”. The process is nice and quick and the ISO is created. I used Nero to create a bootable CD and used it to fire up the Vista machine.

winpe05_small.png

Booting and using Windows PE 2.0

The Windows PE 2.0 interface looks like the Vista logon screen with a command window instead of a logon box.

Here, you can do pretty much anything. The real advantage with WinPE is that it is running a stripped-down version of the Vista kernel, so it gives you read/write access to NTFS filesystems, a wide range of 32- and 64-bit hardware drivers, network access and will launch both 32- and 64-bit applications.

winpe01_small.png

The WinPE system drive is created as X: drive, and all the other machine drives are accessible. You can map network drives, create new physical or logical drives or partition and format existing drives, and reinstall Vista - all from within the WinPE kernel space.

winpe06_small.png

Customising Windows PE 2.0

Because Windows PE 2.0 complies to all the WIM standards, you can bundle any tools and applications you like and create a customised WinPE operating environment.

You can customise deployment options, create installation menus, make use of local installation media, network distribution or Windows Deployment Services … anything really.

Windows PE 2.0 gives sysadmins a wonderful degree of flexibility. Sysadmins will be making much more use of it than they did of WinPE 1.0. If you'll need to use it for Vista deployment, you should start taking a look under the hood now.

The fact that PE uses Windows Imaging format (WIM) and XML standards means that Vista installation and deployment is the most streamlined and integrated of any Windows operating system yet.

Read APC on your iPad now!

Post your comment



Comments

RSS feed Email alert

vasu:

Superb articles on Vista , Inside out.
More of such articles are welcome.

29 February 2008, 8:28 PM (2 years ago)report abuse Send to a friend reply

Tin:

But will the new version be able to be used to do automated installs of older versions of Windows (2000, XP, etc)?

29 February 2008, 8:28 PM (2 years ago)report abuse Send to a friend reply

James Bannan:

Hi Tim - yes, PE 2.0 is backwardly-compatible with 2000/XP. Not sure about NT though.

29 February 2008, 8:28 PM (2 years ago)report abuse Send to a friend reply

Martin van Zanten:

I would like to react to this part: "There’s clearly strong enthusiast interest in it, though, because Windows Automated Installation Kit (WAIK) is being widely illegally distributed on P2P file sharing networks.

For the purposes of this post, I’m using the WAIK [legally obtained from Microsoft!]."

Why use illegal software when you can legally download other live cd's that are bootable: have a look at http://snipurl.com/vxyt

On my machine puppyLinux boots in 60 seconds, and it is fast - give it a go!

Happy computing, Martin

29 February 2008, 8:28 PM (2 years ago)report abuse Send to a friend reply

Laurent Debacker:

"Why use illegal software when you can legally download other live cd’s that are bootable: have a look at http://snipurl.com/vxyt"

Don't start such discussion please, I could also ask you why you are running an anarchic kernel like Linux bloated of patches, instead a FreeBSD or OpenSolaris.

I like WinPE, and used version 1.0 a lot. It is good to see that version 2.0 is here.

29 February 2008, 8:28 PM (2 years ago)report abuse Send to a friend reply

Jason:

#4, off topic maybe?

29 February 2008, 8:28 PM (2 years ago)report abuse Send to a friend reply

Saverio:

Does WinPE allows for installation as a "terminal"? On very low end PCs maybe it's a good thing to have an operating system that only have hardware drivers, network support and a terminal client. This could be the definitive linux-killer in any terminal server project!

29 February 2008, 8:28 PM (2 years ago)report abuse Send to a friend reply

Leon Bollerup:

WinPE 2.0 is also the version we are planing to use for OrcWin (the Windows eddition of our OrcZilla LiveCD) - have anyone done any further testing with 2.0 yet ?

Kind Regards
Leon Bollerup
CEO, Team ORCA
www.orcadesktop.com

29 February 2008, 8:28 PM (2 years ago)report abuse Send to a friend reply

rel:

Can this be configured to run in VMware player in Linux to give someone read/write access to NTFS formatted HDD's that might be on the system?

29 February 2008, 8:28 PM (2 years ago)report abuse Send to a friend reply

M:

Note that this is available from Beta DVDs. Boot from the DVD, and:

1. On the select language/locale/keyboard screen, click next.
2. Click the "Repair your computer" link
3. Click next
4. Click command prompt.

29 February 2008, 8:28 PM (2 years ago)report abuse Send to a friend reply

Keeking up with the Crowd:

I found it at:
http://www.microsoft.com/downloads/details.aspx?FamilyID=c7d4bc6d-15f3-4284-9123-679830d629f2&DisplayLang=en

If the above link doesn't work then just go to http://www.microsoft.com/downloads

and search for "Windows AIK". This Download contains WinPE 2.0

Good luck

29 February 2008, 8:33 PM (2 years ago)report abuse Send to a friend reply

Karthik:

I was desperately looking for a tutorial to build Win PE. Initially, I made the mistake of searching Msft's site for a beginners tutorial - all I got was nonsense (at least, I didn't find a PRACTICAL tutorial.. only some yada yada about how PE can help the big customers). Googling for Windows PE almost always showed links pointing to the freeware, and the more popular counterpart, BartPE - but I've worked enough with BartPE and wanted to try WinPE.

Luckily I found this awesome tutorial - in no time I got my PE image built.. thanks very much.

Could you also give some links on how to pack my own apps with PE, and how to add my app to the startup folder so that it cranks up my wizard when the user boots into PE? I also need to know how to set up PXE booting with this iso file. Would be great if you can write something on this, or show me some links.




29 February 2008, 8:30 PM (2 years ago)report abuse Send to a friend reply

mugatu:

Has anyone got this to work with xp... i can creat the wim file but am unable to make the answer file work with the new windows deploment that comes with server 2003 sp1... any help would be great!!!

29 February 2008, 8:30 PM (2 years ago)report abuse Send to a friend reply

Nuno Brito:

Try looking on http://vistape.boot-land.net

A good solution for customizing Windows PE 2.0 under XP/2003 and Vista

:)

29 February 2008, 8:41 PM (2 years ago)report abuse Send to a friend reply

sam:

Thanks nuno =) finally i could boot something off USEFULL from my thumbdrive =D

29 February 2008, 8:41 PM (2 years ago)report abuse Send to a friend reply

jake (User):

u know how a normal version of vista has kkernal 6000
and u install sp1 and it has kernal 6001
if win pe 2.0 runs off the vista kernal microsoft
should make a win pe 2.1 with a striped back version of
the vista kernal 6001


14 April 2008, 3:05 AM (2 years ago)report abuse Send to a friend reply

jake (User):

is there a way u can change the background image


14 April 2008, 5:05 PM (2 years ago)report abuse Send to a friend reply

Blowfish (New user):

I read with interest this article by James Bannan on Win PE 2.0. Sounds easy to create a bootable CD from an ISO image, all well and good but James also mentions USB sticks. A challenge maybe? But a reader or James may be able to write some instructions for creating a bootable USB memory stick with Windows PE 2.0 on it. I have read lots about bootable USB using BartPE etc, but there is so much written, I suspect most / lots of readers have not succeeded in getting it to work, myself included.

21 November 2008, 5:53 PM (1 year ago)report abuse Send to a friend reply

Ion Saliu (New user):

This message board needs some extra brains! It made me post twice today, December 18, 2008. I am listed with two posts regaring WAIK, the first one published on November 21, the second one was published tomorrow, December 19, 2008!

Time traveling, anyone?

Ion Saliu,
Wonderer At-Large
saliu.com


19 December 2008, 10:07 AM (1 year ago)report abuse Send to a friend reply

Ion Saliu (New user):

Question I have is how do you install WAIK? After the validation, the instructions read exactly:

"Instructions
1. Click the Download button on this page to start the download
2. Click Save or Save this program to your computer. Windows AIK is distributed as an .img file.
3. Burn the saved img to a DVD
4. Insert the DVD into the machine
5. Click Windows AIK Setup to begin the installation"

I burned the image file vista_6001...IMG to a DVD. I can see the copy on the DVD, but there is no setup. I inserted the DVD several times, but I am prompted to select a program to open the .IMG file. It has not worked.

Can anyone illuminate me, please?

Ion Saliu,
Trusted Installer At-Large
saliu.com




19 December 2008, 10:00 AM (1 year ago)report abuse Send to a friend reply

webopolis (New user):

James: I have a few questions. Wil PE run/install as a stand alone OS? Will PE 2.0 run IE 7 or 8? Even more importantly, does the Windows 7 Automated Installation Kit contain a newer version of PE, or the same version? And, will that run/install stand alone, and run IE 8 (or IE 7)?

08 July 2009, 5:06 PM (1 year ago)report abuse Send to a friend reply

dharam_jhaveri (New user):

u guies r really intelligent

02 January 2010, 2:07 PM (7 months ago)report abuse Send to a friend reply

anonymous user Anonymous user


Tags