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

我正在尝试设置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位于networking共享上。
  • 我已经尝试了wpeinit -unattend:\\ server \ share \ unattend.xml和net use u:\\ server \ share,然后是wpeinit -unattend:u:\ unattend.xml,但都不起作用,也没有将其复制到一个本地驱动器(如X :)并使用该path。
  • WinPE-XML-Package和WinPE-HTA-Package都被添加到通过TFTP服务的winpe.wim文件中。 我不确定他们是否需要,但一个教程build议添加它们,所以我做了。
  • wpeinit日志(下面)提到它发现HTA,但不是由于某种原因的XML。 我应该期待看到吗?
  • networking已经启动,但是我必须运行wpeutil InitializeNetwork来使其工作。
  • WinPE可以看到我的C:\,这是以前的Server 2008安装。
  • 我没有自定义winpeshl.ini或startnet.cmd。
  • 我的testing系统是带有Intel Core2 Duo和Intel 82566DM网卡的Dell Optiplex 755。
  • 我的工作USB密钥autounattend.xml和我的SMB unattend.xml之间的区别是添加Windows安装| ImageInstall | OSImage | InstallFrom = \\服务器IP \共享\ 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) 

运行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) 

感谢您的build议,redblacktree,但是XML文件实际上已经很好地形成了,并且它在USB密钥上工作得很好。

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

 net use w: \\server\share w: cd x64 setup.exe /unattend:w:\unattend.xml 

它工作得很好!

另一个问题是我必须跑步

 wpeutil InitializeNetwork 

才能看到networking。

仔细检查你的xml,你没有错过一个closures标签什么的。 在Internet Explorer中打开它应该足以看到这一点。

你可以得到这个工作与准系统unattend.xml? (即http://unattended-gui.svn.sourceforge.net/viewvc/unattended-gui/z/etc/unattend.xml.example

我将在我的电脑上设置一个MDT2010共享。 它将生成所有的WinPE映像,unattend.xml脚本和你的飞机。 如果需要,可以在之后自定义脚本。 根据我的经验,这是迄今为止获得稳定的Windows部署解决scheme的最简单的方式,并且可以快速,免费地运行。

我想你现在已经解决了….但可以放在PE内存驱动器(x :)的根目录中,而不需要任何附加参数。

按照“运行Windows安装程序的方法”,可以在多个位置查找unattend.xml文件(或者在某些情况下,autounattend.xml文件)。 这意味着您可以使用unattend.xml生成引导映像,避免必须使用其他机制来确定要使用哪个答案文件 – 事实上,unattend.xml现在可以直接指向分发共享上的安装映像。

 <settings pass="windowsPE" ... <component name="Microsoft-Windows-Setup ... ... <InstallFrom> <Path>\\path\to\install.wim</Path> </InstallFrom> ... 

我知道这是一个古老的问题,但我偶然发现了一个类似的问题 ,我想扔在组件的目标plattform需要匹配您的目标(你说是amd64)的可能性,所以标签需要有

 < ... processorArchitecture="amd64"> 

wpeinit评估。 它正在查看您的文件显示在您的日志通过

信息WPEINIT正在处理无人参与文件[u:\ unattend.xml]