Loading

Customize windowsPE image for PXE server

Work Env

Download Intel LAN Drivers for My PC

Why need this step:

Sometimes we need using WinPE OS network to communicate with Internet or access internal CIFS share like below:

Intel LAN Drivers v29.0:

https://www.intel.com/content/www/us/en/download/15084/intel-ethernet-adapter-complete-driver-pack.html

https://downloadmirror.intel.com/816410/Release_29.0.zip

Extract Release_29.0.zip to somewhere , I extract to E:\winpe\Release_29.0

Customize Windows PE ISO

  • Start the deployment Cli with admin privilege

  • Customize Windows PE ISO

  • Add LAN Drivers to WinPE

NOTE

I have the Samba server running on 192.168.3.200 and its FQDN is pxe.srv, make sure the path is accurate.

if you want more auto settings, edit E:\winpe\mount\Windows\System32\startnet.cmd

# E:\winpe\mount\Windows\System32\startnet.cmd
net use M: \\pxe.srv\data\pxe\win /user:jason 
echo Windows 10 installer PATH: M:\win10\setup.exe
echo Windows 11 installer PATH: M:\win11\setup.exe
echo Windows 2k22 installer PATH: M:\winsrv\setup.exe

@echo off
echo Please enter OS you want to install (win10,win11,w2k22)
set /p os=
if "%os%"=="win10" (
    M:\win10\setup.exe 
) else if "%os%"=="win11" (
    M:\win11\setup.exe
) else (
    M:\winsrv\setup.exe
)

All commands here:

copype amd64 E:\winpe
Dism /mount-image /imagefile:E:\winpe\media\sources\boot.wim /index:1 /mountdir:E:\winpe\mount
Dism /Image:E:\winpe\mount  /Add-Driver /Driver:E:\winpe\Release_29.0 /Recurse
echo net use M: \\pxe.srv\data\pxe\win /user:jason  >> E:\winpe\mount\Windows\System32\startnet.cmd
Dism /unmount-image /mountdir:E:\winpe\mount /commit
MakeWinPEMedia /ISO E:\winpe E:\winpe\WinPE.iso
posted @ 2021-01-25 12:23  Jas0n0ss  阅读(339)  评论(0编辑  收藏  举报