我正在尝试对将在相同硬件上运行的 Windows 映像进行 Sysprep。我面临的问题是文件Unattend.XML
不知何故根本无法运行,但日志本身并未表明Unattend.XML
文件有错误,但重启后仍然没有Sysprep_succeeded.tag
文件C:\Windows\System32\sysprep
,即使日志setupact.log
显示
2015-10-28 13:39:10, Info SYSPRP ========================================================
2015-10-28 13:39:10, Info SYSPRP === Beginning of a new sysprep run ===
2015-10-28 13:39:10, Info SYSPRP ========================================================
2015-10-28 13:39:10, Info [0x0f004d] SYSPRP The time is now 2015-10-28 13:39:10
2015-10-28 13:39:10, Info [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\System32\sysprep\Panther
2015-10-28 13:39:10, Info [0x0f0054] SYSPRP ValidateUser:User has required privileges to sysprep machine
2015-10-28 13:39:10, Info [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\System32\sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
2015-10-28 13:39:10, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'OOBE'
2015-10-28 13:39:10, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'GENERALIZE'
2015-10-28 13:39:10, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'SHUTDOWN'
2015-10-28 13:39:10, Info [0x0f005f] SYSPRP ParseCommands:Found supported command line option 'UNATTEND'
2015-10-28 13:39:10, Info [0x0f004a] SYSPRP WaitThread:Entering spawned waiting thread
2015-10-28 13:39:10, Info [sysprep.exe] UnattendFindAnswerFile: Looking at explicitly provided unattend file [unattend.xml]...
2015-10-28 13:39:10, Info [sysprep.exe] UnattendFindAnswerFile: [unattend.xml] meets criteria for an explicitly provided unattend file.
2015-10-28 13:39:10, Info SYSPRP SysprepSearchForUnattend: Using unattend file at [unattend.xml].
2015-10-28 13:39:10, Info SYSPRP SysprepSearchForUnattend: [generalize] pass in unattend file [unattend.xml] either doesn't exist or passed validation
2015-10-28 13:39:10, Info SYSPRP WinMain:Found unattend file at [unattend.xml]; caching...
2015-10-28 13:39:10, Info SYSPRP WinMain:Processing unattend file's 'generalize' pass...
2015-10-28 13:39:10, Info SYSPRP Sysprep is running a generalize pass with the following unattend file: [%windir%\panther\unattend.xml]
此外,每当我运行时sysprep /oobe /generalize /shutdown /unattend:unattend.xml
,Unattend.XML
肯定不会运行,因为它不会离开Sysprep_succeeded.tag
,也不会在文件中执行任何操作,Unattend.XML
因为 PC 名称被重置为 WIN7 而不是 XML 中的名称,并且它不会按应有的方式跳过 OOBE 设置,也不会运行它在 XML 文件中引用的脚本。
发生这种情况有什么原因吗?我在网上找不到有关此特定问题的任何信息,Unattend.XML 文件不知为何没有运行,但日志中没有错误。
谢谢。
答案1
我立即想到的事情是:
- 您的应答文件未通过验证Windows SIM。您应该根据目标操作系统验证 unattend.xml。
- 您的应答文件将被更高优先级的应答文件替换。请参阅隐式应答文件搜索顺序并可能在 Sysprep 之后检查 HKEY_LOCAL_MACHINE\System\Setup\UnattendFile 注册表项。
- 参考映像中安装的安全软件通常会干扰通用化过程。请确保在运行 Sysprep 之前已禁用所有已安装的安全软件。
答案2
我的 HP 笔记本电脑也遇到了类似的问题,在出现问题之前它最初安装了 Win 8.1。我成功修复了它并制作了一个视频,以便可以帮助其他遇到同样问题的人。查看链接了解更多信息。 https://youtu.be/8sfsM40sPCY
希望它能帮助你解决这个问题。Hardik