对于 1GbE 系统,使用此过程可将驱动程序添加到 WIM 映像。
注 - 对于 10GbE 系统,无法将驱动程序添加到 WIM 映像。而是必须等待已安装 OS 后,使用 Tools and Drivers CD/DVD ISO 映像上的 .msi 工具来手动安装驱动程序。
imagex /mountrw C:\windows_distribution\sources\install.wim 1 C:\win_mount
Install.wim 文件中的第一个 Windows 映像将挂载到 C:\wim_mount。
有关启动 Windows SIM 应用程序的详细信息,请参阅适用于 Windows 自动安装工具包 (Windows Automated Installation Kit, AIK) 的 Microsoft 文档。
此时将显示一个新的 PathAndCredentials 列表项。
例如,64 位映像的路径和凭证可能是:
<PATH>\\yourshare\share\DriverPack\64bit/</Path> <Credentials> <Domain>MyDomain</Domain> <Username>MyUserName</Username> <Password>MyPassword</Password> </Credentials>
<?xml version="1.0" ?> <unattend xmlns="urn:schemas-microsoft-com:asm.v3" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"> <settings pass="offlineServicing"> <component name="Microsoft-Windows-PnpCustomizationsNonWinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS"> <DriverPaths> <PathAndCredentials wcm:keyValue="1"> <Path>\\yourshare\share\DriverPack\64bit</Path> <Credentials> <Domain>MyDomain</Domain> <Username>MyUserName</Username> <Password>MyPassword</Password> </Credentials> </PathAndCredentials> </DriverPaths> </component> </settings> </unattend>
pkgmgr /o:"C:\wim_mount\;C:\wim_mount\Windows" /n:"C:\ unattend.xml" /l:"C:\pkgmgrlogs\logfile.txt"
应答文件中的路径中引用的 .inf 文件将添加到 Windows 映像。将在目录 C:\Pkgmgrlogs\ 中创建一个日志文件。
有关使用软件包管理器的更多信息,请参见 Microsoft Windows AIK 文档。
添加到 Windows 映像的驱动程序名为 oem*.inf。这用于确保为添加到计算机中的新驱动程序使用唯一的名称。例如,文件 MyDriver1.inf 和 MyDriver2.inf 将重命名为 oem0.inf 和 oem1.inf。
imagex /unmount /commit C:\wim_mount
服务映像现在可用,所有特定于服务器的驱动程序都将添加到映像中。