SysPrep Windows 10 Pro错误(0x0f0070&0x0f00d8)

所以我似乎遇到了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 

我只看了几篇文章,即

  • KB2769827
  • TechNet文章“如何在shell中删除或删除”white“空白快捷方式:appsFolder”
  • 在Windows 10中还原Microsoft Store应用程序

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

  1. 在EFI VM上使用来自MSDN的“windows_multiple_editions”ISO安装Windows 10 Pro;
  2. 在初始OOBE期间创build了一个用户“Admin”,login并运行了compmgmt.msc并启用了内置的“Administrator”;
  3. 以“pipe理员”身份login,login到networking共享,运行安装一系列程序的安装脚本;
  4. 在Sysprepping之前删除了“Admin”并执行了VMware快照; 和
  5. 运行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" 

我想我的问题是

  • 这可以解决吗?
  • 是什么导致了这一点,以便将来困扰pipe理员将知道如何避免这种情况?
  • 删除“pipe理员”我有什么搞砸了(参考TechNet文章)?

我知道有不同的Appx相关问题的答案,但我没有接触Windows Store / Metro应用程序,而sysprepping。 我安装的唯一值得注意的事情是.NET 3.5(相关?

重新设置我的虚拟机设置是:

  • Windows 10 Pro x64(Build 10240);
  • 2GB内存,60GB硬盘;
  • EFI;
  • 未join域。 目前在WORKGROUP上; 和
  • Internet与VM主机进行NAT。

日志文件中列出的错误:

  • 0x0F0070
  • 0x0F0082
  • 0x0F00D8

我很欣赏反馈和答案。 希望有人能胜过这个SysPrep错误。 谢谢阅读!

    所以我设法通过修改Appx .NET软件包来解决这个问题。 我有一个在VMware上安装时创build的第二个用户。 “pipe理员”和“pipe理员”在系统上。 所以我login到“pipe理员”并跑:

     Remove-AppxPackage "Microsoft.NET.Native.Runtime.1.0_1.0.22929.0_x86__8wekyb3d8bbwe" 

    然后,我遇到了一个错误,指出“Microsoft.Skype”正在使用这个.NET运行时,并删除.NET包是不可能的。

    我不得不通过发布Powershell命令来快速search错误所指的正确包:

     Get-AppxPackage -AllUsers | Select-String "Microsoft.Skype" 

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

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

    我的下一步是在“pipe理员”上做同样的事情。 所以我做了上面的,再次运行Sysprep,繁荣! 有用。 希望这有助于未来的人。 🙂

    TL; DR:

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