Deployment Solution

 View Only

Faster PXE WinPE 2.1 Boot 

May 15, 2008 12:24 PM

The size of the WinPE boot file looks scary when multiple clients are downloading it in a PXE boot. I have found a way to reduce the size of the boot.wim file to 33% less in size than the boot file that Boot Disk Creator creates and of course it downloads 33% faster. The end result should have a 110 Meg size WinPE boot file.

In order to create a play environment, create a second WinPE PXE configuration, meaning create a MenuOption that will not be the first WinPE. The first WInPE PXE configuration is set by default to MenuOption131. We want to play on PXE MenuOption160 or greater.

Also, this assumes that WAIK is installed in your DS server or the Altiris WInPE 2.1 installers were installed. One more thing, this example is only for x86 proc. The batch file could easily be configured to make the changes for x64 and ia64.

The following batch file could be executed stand alone or you could create a job with a run script task (at the deployment server). I am also attaching a text file with the batch file.

REM tools sets to the path where the WAIK tools are located.
REM change this if DS was not installed to the default path
set tools=C:\Program Files\Altiris\eXpress\Deployment Server\WAIK\Tools\

REM This points to the x86 WinPE x86 boot file
REM change this if necessary
set bootimage=C:\Program Files\Altiris\eXpress\Deployment Server\PXE\Images\MenuOption161\X86PC\sources

REM you do no need to change anything below
REM this will create a new boot.wim file and rename the old one in case you need it.

mkdir c:\winpe_2x86
mkdir c:\winpe_2x86\mount
"%tools%\x86\imagex.exe" /mountrw "%bootimage%\boot.wim" 1 C:\winpe_2x86\mount
"%tools%\x86\imagex.exe" /boot /compress maximum /capture C:\winpe_2x86\Mount "%bootimage%\bootnew.wim" "WinPE2"
"%tools%\x86\imagex.exe" /unmount C:\winpe_2x86\mount
copy "%bootimage%\boot.wim" "%bootimage%\bootold.wim"
copy "%bootimage%\bootnew.wim" "%bootimage%\boot.wim"

If interested I could guide you on how to add other packages that are not added by default WinPE HTA package, WinPE MDAC package, WinPE Scripting-Package (included), WinPE WMI package (included), WinPE XML package.

Statistics
0 Favorited
1 Views
1 Files
0 Shares
0 Downloads
Attachment(s)
txt file
WinPE21_reduce_size.txt   1 KB   1 version
Uploaded - Apr 10, 2020

Tags and Keywords

Comments

Oct 07, 2010 10:55 AM

Hi there..

Your script looks good - now for me to sound very silly.

In our environment, we have 1 main DS and 32 Package Servers on different sites which function as PXE servers.

 

If I run your script, would I be correct in assuming that this only compresses the image file on the main DS. If so, how do I go about compressing the remaining ones?

 

Regards,

Gerard

May 20, 2008 09:52 AM

I have tried WinPE with DS 6.0. The problem comes when an agent is needed to communicate back to DS while in automation. You could create your own WinPE PXE boot files without Boot Disk Creator and import it as a "user supplied" option. Again this will be considered a network boot.
--Nelo

May 18, 2008 12:16 AM

Has anyone tried using WinPE on older versions of DS such as 5.6?
Boston Altiris User Group Webmaster

May 15, 2008 05:11 PM

I tested out your above steps, ran the batchfile directly on the desktop of the server, and then the image only took 4.5 minutes instead of 8 to load.
Problem is our PXE server is in another building, maybe once we get a PXE server setup in this building it'll definately fly.

May 15, 2008 02:29 PM

Hey no problem. there is something else you could to do speed up the PXE boot process.
Launch PXE Configuration Tool Select the Multicast tab. Change the 768 value to 1456. Click save and wait until the changes are made. Start up a client select WinPE Managed and the download should be tons faster. I am able to PXE boot WinPE 2.1 x86 in about 23 seconds. this is on a Gigabit network.
--nelo

May 15, 2008 01:34 PM

Nelo,
Thanks for figuring this out. I was getting slightly frustrated that it was taking 8 minutes to pull down the WinPE 2.1 image through PXE and I wasn't sure exactly how to shrink the image to a managable size. If I can get the load time to under 6 minutes, you'll be a life saver!

Related Entries and Links

No Related Resource entered.