我正在尝试概括Azure VM映像。运行sysprep时,以下错误会记录到错误日志中
SYSPRP WinMain:正在处理“清除”外部提供程序请求。 2019-01-29 10:32:52,信息[0x0f006c]
SYSPRP RunExternalDlls:在阶段3 2019-01-29 10:32:52,信息[0x0f008a]的注册表中列出的运行DLL
SYSPRP RunRegistryDlls:该阶段的节名称为Cleanup 2019-01-29 10:32:52,信息[0x0f008b]
SYSPRP RunRegistryDlls:在SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Setup \ SysPrepExternal \ Cleanup \ 4FC1DA7A-CF3F-11E8-A988-000D3A3BE068;中的注册表中找到入口点;将尝试启动'DscCore.dll,SysPrep_Cleanup'2019-01-29 10:32:52,信息[0x0f0080]
SYSPRP LaunchDll:找到了'DscCore.dll,SysPrep_Cleanup';执行它2019-01-29 10:32:52,错误[0x0f0082] SYSPRP LaunchDll:执行'DscCore.dll,SysPrep_Cleanup'时发生故障,返回错误代码0x2 2019-01-29 10:32:52,错误[0x0f0070 ]
SYSPRP RunExternalDlls:运行注册表sysprep DLL时发生错误,暂停了sysprep执行。 dwRet = 0x2 [gle = 0x00000006] 2019-01-29 10:32:52,错误[0x0f00ae]
SYSPRP WinMain:处理sysprep清理外部提供程序时失败; hr = 0x80070002 [gle = 0x00000006]
答案 0 :(得分:1)
在 Windows 10 Multi-User 21H1 上遇到同样的问题
解决方案:为 AgentId 添加了一个空的 reg 值
reg add "HKLM\SOFTWARE\Microsoft\DesiredStateConfiguration" /v AgentId /t REG_SZ /d "" /f