ITsVISTA
Information that makes life easier when it comes to installing, managing, and using Windows Vista.
Start About FAQ Blogroll Shop

Toss DOS, Install Vista with Free WinPE

WinPEIn an earlier article I showed how to install the free Windows Automated Installation Kit (WAIK). Now, we get to start using it. The first thing we’ll do with it is build a Windows Preinstallation Environment 2.0 boot disc. Microsoft says Windows PE is a “…bootable tool that provides operating system features for installation, troubleshooting, and recovery”. For many of us, it will take the place of DOS boot discs (and for some of you will be an alternative to BartPE, a free alternative to WinPE 1.0 which had limited availability). Here’s how to build a very basic WinPE boot disc that you can start using now, and can include in your Vista deployment plans. Future articles will discuss how to build on this to add more functionality.

  1. Go to the Start menu and under All Programs find the Microsoft Windows AIK folder and launch Windows PE Tools Command Prompt, or open a command prompt and type cd c:\program files\Windows AIK\Tools\PETools.
  2. Create a local Windows PE build directory by typing the command copype.cmd <arch> <destination>. If you’ll be working with 32-bit machines (the rest of the examples will assume you are), replace <arch> with x86. If you’ll be working with 64-bit machines, replace <arch> with either amd64 or ia64, depending on which chipset your computers have.
  3. You’ll see a list of files copying. When the copy is complete, you can add other tools to the image as well. One that you will likely want to have included is ImageX. To add this, if you installed WAIK to the default location, type copy "c:\program files\Windows AIK\Tools\x86\imagex.exe" c:\winpe_x86\iso\ (that is all one line). You can add other tools as well at this time, future articles will mention some of these.
  4. You can now create a .ISO image using the Oscdimg tool. Change to the PE Tools directory by typing cd c:\program files\Windows AIK\Tools\PETools\ and hit enter. Then, type oscdimg -n -bc:\winpe_x86\etfsboot.com c:\winpe_x86\ISO c:\winpe_x86\winpe_x86.iso (again, all one line).
  5. With the image file created, you can now burn it to CD. WAIK doesn’t include burning software (and Windows XP or Vista can’t do ISO images out of the box either), so you’ll need a third-party product like Nero. If you don’t have Nero, and don’t want to spend any money, I use a freeware product called ImgBurn, which despite it’s name, can burn ISO files as well. Simply download and install with the default settings. Start ImgBurn and click the Browse for file folder icon at the top in the Source section. The file you are looking for is C:\winpe_x86\winpe_x86.iso. You may want to check the Verify box, this will insure that the disc was properly created. It’s quite frustrating fighting to boot a machine only to learn your boot disc is no good. Put in your CD, and click the Write button at the bottom of the window (the picture of an image file with an arrow pointing to a disc).
  6. The copy should only take a couple minutes. If you chose to verify, the CD will eject once the copy is finished, you need to push it back in again so the verify can automatically begin. You’ll know you are finished when some very annoying music plays. You can close ImgBurn and the Windows PE command prompt, you’ve got a WinPE boot disc!

Take your disc to a computer that you want to boot. You’ll either need to tell the computer to boot from the CD by starting the boot device menu (on a Dell you’d press F12 in the inital boot screen and select the CD/DVD drive), or in the BIOS tell the computer to check the CD/DVD drive before the hard drive in the boot order settings. If it turns out WinPE doesn’t have the drivers you need to properly boot your computer, all is not lost. You can add additional drivers, as well as other utilities, but those are topics for a future article.

Get notified of new posts for FREE via RSS or E-mail

Subscribe to ITsVISTA!

Comments

  • Sweaty Bullitts

    Mar 23, 2007 at 11:22 am

    Will I be able to do the normal kind of command line stuff, like dir, cd, md, copy, del, etc? Any text editing, like Notepad?

    Thanks!

  • Jeff

    Dec 16, 2007 at 10:58 am

    Would it be possible to install a program like Drive Image XML within the RE environment? It would be interesting to see an article with some basic system utilities (VIM, AV and elect). Good article nonetheless.

  • jayakandan

    Jan 28, 2008 at 10:25 am

    HI

    i’m unable create the ISO image

    the error msg as follows

    ————————————————————-

    C:\Program Files\Windows AIK\Tools\PETools>oscdimg -n -bc:\winpe_x86\etfboot.com
    c:\winpe_x86\ISO

    OSCDIMG 2.45 CD-ROM and DVD-ROM Premastering Utility
    Copyright (C) Microsoft, 1993-2000. All rights reserved.
    For Microsoft internal use only.

    ERROR: Could not open boot sector file “c:\winpe_x86\etfboot.comc:\winpe_x86\ISO

    Error 123: The filename, directory name, or volume label syntax is incorrect.
    ——————————————————————–

    Could you pls suggest me to fix this

    Thanks
    Jay

  • Joe

    Jan 28, 2008 at 10:55 am

    If the error is correct, it looks like you forgot a space between ‘…etfboot.com’ and ‘c:\winpe_x86…’

  • Jeff

    Jan 28, 2008 at 11:31 am

    You didn’t really provide enough information, but it might be helpful to look over the syntax really closely.

    Rather than working from a string, it would be easier to issue the command as a evaluated user from the following directory:

    c:\program files\Windows AIK\Tools\PETools\

    Now to the problem, I think this might be it, you put a \ after etfboot.com

    example: (if I issue)
    oscdimg -n -bc:\winpe_x86\etfsboot.com\ c:\winpe_x86\ISOi c:\winpe_x86\winpe_x86.iso

    I get the following error:
    ERROR: Could not open boot sector file “c:\winpe_x86\etfboot.comc:\winpe_x86\ISO
    �
    Error 123: The filename, directory name, or volume label syntax is incorrect.

    If I issue this instead:
    oscdimg -n -bc:\winpe_x86\etfsboot.com c:\winpe_x86\ISO c:\winpe_x86\winpe_x86.iso

    it creates the image successfully.

  • Jeff

    Jan 28, 2008 at 11:36 am

    Never mind… syntax error. I didn’t look your comment over closely enough… Joe is right, you forgot a space.

  • jayakandan

    Jan 29, 2008 at 3:29 am

    Thanks a lot ,i missed a space

    Jay

  • Jayray

    Feb 10, 2009 at 7:45 pm

    I have tried this and cannot get the image created. I get the same error message as listed above. I have tried all the suggestions as above. I just don’t get it! Any other ideas?

  • Zak

    Apr 23, 2009 at 2:58 am

    I did everything above and got a successful copy of the boot disk. Put in the broken computer and it got stuck with a blue (windows) background and a command prompt with ” x:\windows\system32\wpeinit” and a flashing cursur below it.
    Please can you advise?

  • Sal

    Oct 10, 2009 at 4:45 am

    Zak,
    The blue background and command prompt IS Windows PE2.

    MY problem is that I copied imagex.exe to the ~\winpe_x86\ISO folder, and executed the oscdimg just as displayed. The disc will start up, but I can’t seem to find imagex anywhere!
    if anyone has any tips please help.
    Thanks

  • ???Vista WinPE????????? = ???? ????

    Dec 18, 2009 at 9:07 am

    [...] ??windows aik ???????vista winpe???vista winpe?????????? ?????waik???u???????????? http://itsvista.com/2006/12/toss-dos-install-vista-with-free-winpe [...]

  • UK Software companies

    Dec 21, 2009 at 11:25 am

    Hey, that was interesting,

    Keep up the good work,

    Thanks

  • gultekinmg

    Jan 14, 2010 at 3:20 am

    Very sick, Just to secure winosh do we need more GB to in-stall windows.
    I wonder if its usefull. Why? Ms should not upload a handy winpe.iso as a light version windows with aditional tools tobe used with CD or USB and I should deal mass to create Winpe.
    just reading algo makes me all-go.
    (Honey calls me, close the windows! come ..:)

Leave a Comment