Windows Server 2016TP5 Sysprep setupdigetclassdevs失败,错误为0

时间:2016-07-21 16:45:24

标签: packer windows-server-2016 sysprep

我使用Packer进行Windows Server 2016TP5构建。 ISO从MSDN下载,哈希很好。 我的机器上的Packer在Linux和Windows Server 2012R2上运行良好。 Autounattend和脚本几乎与2012R2相同,所有脚本都可以在使用WS2015TP5的测试VM上成功运行。

问题是sysprep失败并出错 setupdigetclassdevs失败,错误为0

我试过了:

Get-AppxPackage -AllUser | Remove-AppxPackage
Stop-Service -Name "tiledatamodelsvc"
Set-Service -Name "tiledatamodelsvc" -StartupType Disabled
Set-ItemProperty -Path "registry::HKLM\SYSTEM\Setup\Status\SysprepStatus" -Name "GeneralizationState" -Value 7

......但没有任何帮助。 关于如何修复它的任何想法?

提前致谢!

1 个答案:

答案 0 :(得分:0)

使用shutdown_command A:/sysprep.bat而不是plaintext命令修复 同样的解决方案也适用于2012r2。