解决方法:
步骤一:查看日志(日志位置: C:\Windows\System32\Sysprep\Panther\setuperr.log)
2023-07-20 16:37:13, Error [0x0f0073] SYSPRP RunExternalDlls:Not running DLLs; either the machine is in an invalid state or we couldn't update the recorded state, dwRet = 31
2023-07-20 16:37:13, Error [0x0f00ae] SYSPRP WinMain:Hit failure while processing sysprep cleanup providers; hr = 0x8007001f2
出现上述错误可参考步骤进二进行注册表的更改。
步骤二:更改注册表
进入注册表(regedit.exe),找到HKLM\System\Setup\Status\SysprepStatus\,在右方查看GeneralizationState的值,如若不是7,可更改为7,即可重新运行sysprep.exe进行封装