首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Windows 2008安装: wpeinit -unattend:unattend.xml什么也不做

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

Server Fault用户
提问于 2009-08-19 02:02:26
回答 6查看 12.3K关注 0票数 7

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

我让它在USB键上使用DVD和autounattend.xml来工作,但现在我想让它在PXE上工作,这样我就不必将DVD放到一些海外服务器上。

我正在尝试这个方法演练:使用PXE部署映像演练:使用PXE部署映像,它通过PXE引导WinPE,除了在最后阶段我使用的是pxeboot.com而不是wdsnbp.com,因为我没有。那部分很好用。

我遇到的问题是如何让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:)并使用该路径。
  • 和都被添加到通过TFTP服务的winpe.wim文件中。我不确定它们是否是必需的,但是有一个教程建议添加它们,所以我做到了。
  • wpeinit日志(下面)提到它找到了HTA,但由于某种原因没有找到XML。我也应该看到它吗?
  • 网络建立起来了,但我不得不运行wpeutil InitializeNetwork才能让它正常工作。
  • WinPE可以看到我的C:\,这是以前的服务器2008安装。
  • 我没有定制winpeshl.ini或startnet.cmd。
  • 我的测试系统是一个戴尔Optiplex 755与英特尔的Core2二人和英特尔82566 an网卡。
  • 我的工作USB autounattend.xml和我的SMB unattend.xml之间的区别是添加了autounattend.xml IP\share\install.wim,如果我想让它在没有Server2008DVD的情况下工作,这是必要的。
  • SMB服务器是一个Linux Samba,它允许匿名访问而不需要密码。在unattend.xml中没有指定凭据。

知道我做错什么了吗?

谢谢

自动wpeinit第一遍

wpeinit.log后的

代码语言:javascript
运行
复制
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中

代码语言:javascript
运行
复制
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)
EN

回答 6

Server Fault用户

回答已采纳

发布于 2009-09-03 08:20:11

感谢您的建议,redblacktree,但是XML文件实际上是格式良好的,并且它在USB键上工作得很好。

我发现我可以在/unattend中使用setup.exe,所以我将整个复制到一个文件服务器,通过PXE引导相同的WinPE映像,然后运行:

代码语言:javascript
运行
复制
net use w: \\server\share
w:
cd x64
setup.exe /unattend:w:\unattend.xml

而且效果很好!

另一个问题是我得跑

代码语言:javascript
运行
复制
wpeutil InitializeNetwork

在我看到网络之前。

票数 4
EN

Server Fault用户

发布于 2009-08-19 13:40:21

再次检查您的xml,以确保您没有遗漏一个关闭标记或其他什么。在中打开它就足够看到这一点了。

你能让这个和一个简单的unattend.xml一起工作吗?(即)http://unattended-gui.svn.sourceforge.net/viewvc/unattended-gui/z/etc/unattend.xml.example)

票数 0
EN

Server Fault用户

发布于 2009-10-23 07:35:25

我会在我的电脑上设置一个MDT2010共享。它将为您动态生成所有WinPE映像、unattend.xml脚本和批次。如果您需要,您可以自定义脚本之后。根据我的经验,这是获得Windows的稳定部署解决方案的最简单的方法,它可以快速、免费地运行。

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/55887

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档