使用 Windows Deployment Services (WDS) 進行網路部署時,用戶端在 PXE 開機階段若找不到網卡驅動,會報錯:
WdsClient: An error occurred while starting networking: a matching network card driver was not found in this image.
解決方法是將網卡驅動注入 boot.wim (Windows PE 開機映像)。本文提供兩種手動注入法與關鍵避坑指南。
imagex.exe、peimg.exe (WAIK 2.0/Server 2008) 或 dism.exe (WAIK 3.0+/Server 2008 R2)。.inf、.sys、.cat 等檔案)。\sources\boot.wim 複製,或從 WDS 伺服器匯出。mkdir D:\bootimagex /mountrw D:\boot.wim 2 D:\bootpeimg /inf=D:\Drivers\NetAdapter\netadapter.inf D:\boot\Windowsimagex /unmount /commit D:\bootRemoteInstall\Boot\x86\Images\boot.wim 或 x64 對應路徑)。dism /Mount-Image /ImageFile:D:\boot.wim /Index:2 /MountDir:D:\bootdism /Image:D:\boot /Add-Driver /Driver:D:\Drivers\NetAdapter /Recursedism /Unmount-Image /MountDir:D:\boot /Commit實測發現: boot.wim 內含兩個索引(索引 1:Windows PE 2.0,索引 2:Windows Setup Engine)。僅注入索引 1 無效,必須同時注入索引 1 與 2,用戶端才能順利載入網卡驅動完成 PXE 開機。


D:\boot1、D:\boot2)。imagex /export 或手動合併產出最終 boot.wim(或直接依序提交至同一檔案)。Signature="$Windows NT$" 與 Class=Net。/ForceUnsigned(僅測試環境)或匯入憑證至信任根憑證機構。