所以我似乎遇到了一个问题,即 Windows 10 和 Windows 应用商店应用程序(我假设)干扰 Sysprep /oobe /generalize。
当我尝试运行上述命令时,我在setuperr.log中收到以下错误:
Error SYSPRP Package Microsoft.NET.Native.Runtime.1.0_1.0.22929.0_x86__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
Error SYSPRP Failed to remove apps for the current user: 0x80073cf2.
Error SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.
Error [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
Error SYSPRP RunPlatformActions:Failed while validating SysprepSession actions; dwRet = 0x3cf2
Error [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2
Error SYSPRP Package Microsoft.NET.Native.Runtime.1.0_1.0.22929.0_x86__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
Error SYSPRP Failed to remove apps for the current user: 0x80073cf2.
Error SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.
Error [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
Error SYSPRP RunPlatformActions:Failed while validating SysprepSession actions; dwRet = 0x3cf2
Error [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2
我只在网上看过几篇文章,即:
我在安装系统时唯一做的事情是这些,按顺序:
- 在 EFI VM 上使用来自 MSDN 的“windows_multiple_editions”ISO 安装了 Windows 10 Pro;
- 在初始 OOBE 期间创建用户“Admin”,登录并运行compmgmt.msc并启用内置“Administrator”;
- 以“管理员”身份登录,登录网络共享,运行安装脚本来安装一堆程序;
- 删除了“Admin”并在 Syspreping 之前做了一个 VMware 快照;和
- Ran Sysprep.exe /oobe /generalize 并收到上述错误。
我主动尝试通过查看 Powershell 的 AppxPackage cmdlet 来快速解决此问题,但以下命令未返回任何结果:
Get-AppxPackage -AllUser | Where PublisherId -eq 8wekyb3d8bbwe | Format-List -Property PackageFullName,PackageUserInformation | Select-String "Microsoft.NET.Native.Runtime.1.0_1.0.22929.0_x86__8wekyb3d8bbwe"
我想我的问题是:
- 这可以解决吗?
- 是什么原因造成的,让未来困扰的管理员知道如何避免这种情况?
- 通过删除“管理员”,我是否以某种方式搞砸了(参考 TechNet 文章)?
我知道有针对不同 Appx 相关问题的答案,但我在 sysprep 时根本没有触及 Windows Store/Metro 应用程序。我安装的唯一值得注意的是 .NET 3.5(相关?)
回顾一下我的虚拟机设置是:
- Windows 10 专业版 x64(内部版本 10240);
- 2GB 内存,60GB 硬盘;
- 电喷;
- 未加入域。目前在工作组;和
- Internet 使用 VM 主机进行 NAT。
日志文件中列出的错误:
- 0x0F0070
- 0x0F0082
- 0x0F00D8
我感谢反馈和答案。希望有人能够智取这个 SysPrep 错误。谢谢阅读!