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

作者:Jas0n0ss

出处:https://www.cnblogs.com/Jas0n0ss/p/14324554.html

版权:本作品采用「MIT」许可协议进行许可。

posted @   Jas0n0ss  阅读(342)  评论(0编辑  收藏  举报
编辑推荐:
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
阅读排行:
· winform 绘制太阳,地球,月球 运作规律
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· AI 智能体引爆开源社区「GitHub 热点速览」
· 写一个简单的SQL生成工具
· Manus的开源复刻OpenManus初探
more_horiz
keyboard_arrow_up light_mode palette
选择主题
menu
点击右上角即可分享
微信分享提示