SysPrep Windows 10 专业版错误 (0x0f0070 & 0x0f00d8)

Pro*_*oxy 7 sysprep windows-10

所以我似乎遇到了 Windows 10 和 Windows Store 应用程序(我假设)干扰 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
Run Code Online (Sandbox Code Playgroud)

我只在网上看过几篇文章,即

我在安装系统时所做的唯一事情是

  1. 在 EFI VM 上使用 MSDN 中的“windows_multiple_editions”ISO 安装 Windows 10 Pro;
  2. 在初始 OOBE 期间创建用户“Admin”,登录并运行compmgmt.msc并启用内置“Administrator”;
  3. 以“管理员”身份登录,登录网络共享,运行安装脚本以安装一堆程序;
  4. 在 Sysprepping 之前删除了“Admin”并做了一个 VMware 快照;和
  5. 运行 Sysprep.exe /oobe /generalize 并收到上述错误。

我通过查看 Powershell 的 AppxPackage cmdlet 主动尝试快速解决此问题,但以下命令没有返回任何结果:

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
Run Code Online (Sandbox Code Playgroud)

我想我的问题是

  • 这可以解决吗?
  • 是什么导致了这种情况,以便未来陷入困境的管理员知道如何避免这种情况?
  • 通过删除“管理员”,我是否以某种方式搞砸了(参考 TechNet 文章)?

我知道对于不同的 Appx 相关问题有答案,但是在进行系统准备时我根本没有接触过 Windows 应用商店/Metro 应用程序。我安装的唯一值得注意的是 .NET 3.5(相关?)

重新定义我的 VM 设置是:

  • Windows 10 专业版 x64(内部版本 10240);
  • 2GB 内存,60GB 硬盘;
  • 电喷;
  • 未加入域。目前在WORKGROUP;和
  • Internet 是使用 VM 主机进行 NAT 的。

日志文件中列出的错误:

  • 0x0F0070
  • 0x0F0082
  • 0x0F00D8

我感谢反馈和答案。希望有人能够更聪明地解决这个 SysPrep 错误。谢谢阅读!

Pro*_*oxy 3

因此,我设法通过对 Appx .NET 包进行一些修改来解决这个问题。我有第二个用户,是在 VMware 上安装期间创建的。系统上有“管理员”和“管理员”。所以我登录“Admin”并运行:

Remove-AppxPackage "Microsoft.NET.Native.Runtime.1.0_1.0.22929.0_x86__8wekyb3d8bbwe"
Run Code Online (Sandbox Code Playgroud)

然后我遇到一个错误,指出“Microsoft.Skype”正在使用此 .NET 运行时,并且无法删除 .NET 包。

我必须通过发出 Powershell 命令来快速搜索此错误所指的正确包:

Get-AppxPackage -AllUsers | Select-String "Microsoft.Skype"
Run Code Online (Sandbox Code Playgroud)

然后它显示了一个 Microsoft.Skype Appx 包!

然后我删除了“Microsoft.Skype”Appx 包并继续运行上述命令,它起作用了!

我的下一步是对“管理员”执行相同的操作。所以我执行了上述操作并再次运行 Sysprep,繁荣!有用。希望这对将来的人有帮助。:)

长话短说:

  1. 尝试删除除内置管理员之外的任何其他用户上的 Appx 包,这应该会引发与另一个应用程序的错误/冲突;
  2. 使用上面的Get-AppxPackage -AllUsers命令搜索应用程序
  3. 删除冲突的应用程序以便能够删除主要引起问题的应用程序;
  4. 对所有用户执行此操作,包括内置管理员;和
  5. Sysprep 应该可以再次工作。