Windows Server 2008 安装:wpeinit -unattend:unattend.xml 什么都不做

Mik*_*kel 7 windows-server-2008 installation unattended windows-pe

我正在尝试设置 Windows Server 2008 x64 的自动安装。

我在 USB 密钥上使用 DVD 和 autounattend.xml 让它工作,但现在我想让它通过 PXE 工作,所以我不必将 DVD 放入某些海外服务器的驱动器中。

我正在尝试这种方法演练:使用 PXE 部署映像,它通过 PXE 引导 WinPE,但在最后阶段我使用 pxeboot.com 而不是 wdsnbp.com,因为我没有 Windows 部署服务器。那部分工作正常。

我遇到的问题是试图让 WinPE 开始安装。Wpeinit 命令行选项文档说我可以执行 wpeinit /unattend=\path\to\unattend.xml,但是没有向控制台打印任何内容就失败了,并且日志文件中也没有明显的错误消息。

  • unattend.xml 位于网络共享上。
  • 我已经尝试过 wpeinit -unattend:\\server\share\unattend.xml 和 net use u: \\server\share 后跟 wpeinit -unattend:u:\unattend.xml,但两者都不起作用,也不能将其复制到本地驱动器(例如 X:)并使用该路径。
  • WinPE-XML-Package 和 WinPE-HTA-Package 均已添加到通过 TFTP 提供服务的 winpe.wim 文件中。我不确定它们是否是必需的,但是一个教程建议添加它们,所以我做了。
  • wpeinit 日志(如下)提到它由于某种原因找到了 HTA 而不是 XML。我也应该期待看到它吗?
  • 网络已启动,但我必须运行 wpeutil InitializeNetwork 才能使其工作。
  • WinPE 可以看到我的 C:\,这是以前的 Server 2008 安装。
  • 我没有自定义 winpeshl.ini 或 startnet.cmd。
  • 我的测试系统是带有 Intel Core2 Duo 和 Intel 82566DM 网卡的 Dell Optiplex 755。
  • 我的工作 USB 密钥 autounattend.xml 和我的 SMB unattend.xml 之间的区别是添加的 Windows-Setup|ImageInstall|OSImage|InstallFrom=\\server IP\share\install.wim,如果我想要它,我认为这是必需的无需 Server 2008 DVD 即可工作。
  • SMB 服务器是 Linux Samba,允许匿名访问,无需密码。在 unattend.xml 中未指定任何凭据。

任何想法我做错了什么?

谢谢

自动 wpeinit 第一次通过后的 wpeinit.log

Info      No unattend file was found; WPEINIT is using default settings to initialize WinPE
Info      Spent 6115ms initializing removable media before unattend search
Info      ==== Initializing Display Settings ====
Info      No display settings specified
Info      STATUS: SUCCESS (0x00000001)
Info      ==== Initializing Computer Name ====
Info      Generating a random computer name
Info      STATUS: SUCCESS (0x00000000)
Info      ==== Initializing Virtual Memory Paging File ====
Info      No WinPE page file setting specified
Info      STATUS: SUCCESS (0x00000001)
Info      ==== Initializing Optional Components ====
Info      WinPE optional component 'Microsoft-WinPE-HTA' is present
Info      STATUS: SUCCESS (0x00000000)
Info      ==== Initializing Network Access and Applying Configuration ====
Info      No EnableNetwork unattend setting was specified; the default action for this context is to enable networking support.
Info      Service dhcp stop: 0x00000000
Info      Service lmhosts stop: 0x00000000
Info      Service bfe stop: 0x00000000
Info      Service ikeext stop: 0x00000000
Info      Service mpssvc stop: 0x00000000
Info      Spent 125ms initializing security templates; status 0x00000000
Info      Install MS_MSCLIENT: 0x0004a020
Info      Install MS_NETBIOS: 0x0004a020
Info      Install MS_SMB: 0x0004a020
Info      Install MS_TCPIP6: 0x0004a020
Info      Install MS_TCPIP: 0x0004a020
Info      Spent 5288ms installing network components
Info      iSCSI: iBFT ACPI Table is not available on this system
Info      Installing device pci\ven_8086&dev_10bd X:\Windows\INF\nete1e3e.inf succeeded
Info      Spent 1295ms installing network drivers
Info      QueryAdapterStatus: no adapters operational.
Info      Spent 0ms confirming network initialization; status 0x003d0001
Info      STATUS: SUCCESS (0x003d0001)
Info      ==== Applying Firewall Settings ====
Info      STATUS: SUCCESS (0x00000001)
Info      ==== Executing Synchronous User-Provided Commands ====
Info      STATUS: SUCCESS (0x00000001)
Info      ==== Executing Asynchronous User-Provided Commands ====
Info      STATUS: SUCCESS (0x00000001)
Info      ==== Applying Shutdown Settings ====
Info      No shutdown setting was specified
Info      STATUS: SUCCESS (0x00000001)
Run Code Online (Sandbox Code Playgroud)

运行 wpeinit /unattend=u:\unattend.xml 后添加到 wpeinit.log 的行

Info      WPEINIT is processing the unattend file [u:\unattend.xml]
Info      ==== Initializing Display Settings ====
Info      No display settings specified
Info      STATUS: SUCCESS (0x00000001)
Info      ==== Initializing Computer Name ====
Info      Generating a random computer name
Info      STATUS: SUCCESS (0x00000000)
Info      ==== Initializing Virtual Memory Paging File ====
Info      No WinPE page file setting specified
Info      STATUS: SUCCESS (0x00000001)
Info      ==== Initializing Optional Components ====
Info      WinPE optional component 'Microsoft-WinPE-HTA' is present
Info      STATUS: SUCCESS (0x00000000)
Info      ==== Initializing Network Access and Applying Configuration ====
Info      No EnableNetwork unattend setting was specified; the default action for this context is to enable networking support.
Info      Found an smb connection.
Info      Networking is currently in use and will not be restarted.
Info      QueryAdapterStatus: found operational adapter with DHCP address assigned.
Info      Spent 0ms confirming network initialization; status 0x00000000
Info      STATUS: SUCCESS (0x00000000)
Info      ==== Applying Firewall Settings ====
Info      STATUS: SUCCESS (0x00000001)
Info      ==== Executing Synchronous User-Provided Commands ====
Info      STATUS: SUCCESS (0x00000001)
Info      ==== Executing Asynchronous User-Provided Commands ====
Info      STATUS: SUCCESS (0x00000001)
Info      ==== Applying Shutdown Settings ====
Info      No shutdown setting was specified
Info      STATUS: SUCCESS (0x00000001)
Run Code Online (Sandbox Code Playgroud)

Mik*_*kel 4

感谢 redblacktree 的建议,但 XML 文件实际上格式良好,并且在 USB 密钥上运行良好。

我发现我可以将 /unattend 与 setup.exe 一起使用,因此我将整个 Windows 安装 DVD 复制到文件服务器,通过 PXE 启动相同的 WinPE 映像,然后运行:

net use w: \\server\share
w:
cd x64
setup.exe /unattend:w:\unattend.xml
Run Code Online (Sandbox Code Playgroud)

而且效果很好!

另一个问题是我必须跑

wpeutil InitializeNetwork
Run Code Online (Sandbox Code Playgroud)

在我看到网络之前。