Topic: PXE-Boot-Script  (Read 4223 times)

PXE-Boot-Script
« on: March 12, 2014, 10:26:36 PM »

2aCD

  • Code Baker
  • Jr. Chef
  • **
  • Location: Dresden, Germany
  • Date Registered: May 2013
  • Posts: 80
Hi friends,

here is a little experimental script to help boot WinPE from PXE-Server (WDS). The problem is, that all programs run from ram into the wim-file, no CD-Rom is available. The wim-file is very big and slow.
My idea is, to emulate the drive Y on a networkdrive.
Create a share on a networkdrive with writeacces for a domainuser. So you can build a Standard WinPE with a programfolder. Than copy the complete generated programs folder (programs_x64) on this location.
Define your wim-file on your PXE-server as startimage.

For a correct working it is necessary to start network before shell. Enable this Option in PENetwork and enable autostart network.
Also enable create shortcuts at buildtime in finals.
Place the script in folder components from your project. Set the networkshare (UNC-path), username (domain\username) and password for access.

How the script is working:
It is running as runonce before the explorer starts. It is waiting if network is ready an map the share as drive Y:.
The original CDRomdrive-mapping is turned off.
If this succeeds, there is a network volume Y with your program folder.

Here can you download the script for testing (v2):

* 0_PXESupport.7z (916.86 kB - downloaded 380 times.)


have fun  :thumbsup:
2aCD
« Last Edit: March 18, 2014, 04:03:13 PM by 2aCD »

Re: PXE-Boot-Script
« Reply #1 on: March 17, 2014, 11:08:56 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Hi 2aCD,

Interresting, nice feature  :thumbsup:

Win8.1SE use Pecmd, can you add
 
Code: [Select]
If,%ProjectName%,Equal,Win8.1SE,Begin
  If,ExistFile,%target_sys%\PecmdInit.ini,TXTReplace,%target_sys%\PecmdInit.ini,"EXEC !=%SystemRoot%\system32\MountPEmedia.exe","//EXEC !=%SystemRoot%\system32\MountPEmedia.exe"
  If,ExistFile,%target_sys%\Pecmd.ini,TXTReplace,%target_sys%\Pecmd.ini,"EXEC !=%SystemRoot%\system32\MountPEmedia.exe","//EXEC !=%SystemRoot%\system32\MountPEmedia.exe"
End


Re: PXE-Boot-Script
« Reply #2 on: March 18, 2014, 04:02:29 PM »

2aCD

  • Code Baker
  • Jr. Chef
  • **
  • Location: Dresden, Germany
  • Date Registered: May 2013
  • Posts: 80
Hi ChrisR,

I have add this for Win81SE.
For this to work, it is necessary to place the script in Components.
So it runs after the script CDDriveXY and after PECmd and before PENetwork.
It is important that it runs before PENetwork so that the entries in the Win7PE.cfg/Win8.1PE.cfg  are written in the correct order.

So I have rename the script v2  and you must place it in components.
But I have no test PXE-Boot with Win8.1

See you  :thumbsup:
2aCD
« Last Edit: March 18, 2014, 04:21:01 PM by 2aCD »

Re: PXE-Boot-Script
« Reply #3 on: March 18, 2014, 07:38:06 PM »

ChrisR

  • XPE Baker
  • Grand Chef
  • *****
  • Date Registered: Mar 2011
  • Posts: 3494
Hi 2aCD,

I have not tested either with Win8.1se, but it should work, the principle, the startup is similar.

I added a second Note:
Quote
"To get shortcuts on the network drive, Select '2 - MakeShortcuts' in Finals folder#$xto Make Shortcuts at Build time"
For the name, I kept 0_PXESupport for the correct order in the config file.

It is on SE server, thanks :thumbsup:

Re: PXE-Boot-Script
« Reply #4 on: March 18, 2014, 08:01:36 PM »

2aCD

  • Code Baker
  • Jr. Chef
  • **
  • Location: Dresden, Germany
  • Date Registered: May 2013
  • Posts: 80
thats ok  :thumbsup:

Re: PXE-Boot-Script
« Reply #5 on: August 12, 2014, 10:02:49 PM »

radix

  • Jr. Chef
  • **
  • Date Registered: May 2014
  • Posts: 19
I tested but not work for me.

I load the Wim file from a PXE server on my job network. But the script says ath the startup "maping network units as Y.....) but never map the unit.

I testes modifying the script adding my domain user and pass. But even so the script dont work.

What i do was build the PE all packed into the WIM file. Then edit the autorun to map network drive at the startup with the NET USE command. Then i put all the programs in the Network drive (not Y) and i add the .LKN in the start menu. so qhen you click on the icon un the start menu the programs start from the network drive. In that way the WIM file only have esential and drivers.


 

Powered by EzPortal