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://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
本文来自博客园,作者:Jas0n0ss,转载请注明原文链接:https://www.cnblogs.com/Jas0n0ss/p/14324554.html