大网数据广告活动
启动与系统组件

A fatal error occurred while trying to sysprep the machine

· 52CE 我爱测

Helps resolve the fatal error occurred while trying to sysprep the machine when you use the Sysprep tool.

This article helps resolve the error "A fatal error occurred while trying to sysprep the machine" when you use the Sysprep tool.

When you use the System Preparation (Sysprep) tool, you may receive the following error message:

A fatal error occurred while trying to sysprep the machine.

Additionally, an error message that resembles the following is logged in the Setuperr.log file:

<Date> <Time>, 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

The fatal error is designed to prevent the deployment of a corrupted image. When you run the Sysprep tool, the progress is tracked through each phase of Sysprep. Sysprep can't roll back when it experiences errors.

To resolve this error, re-create the image.

You can't correct the problem with the image. When the Sysprep tool runs, it clears the %windir%\system32\sysprep\panther\setupact.log file. Therefore, you can't see what failed the last time that the Sysprep tool ran unless you have a copy of the setupact.log file that existed before you ran Sysprep.

Note: Before you create a new image or rerun the Sysprep tool, we recommend that you save the contents of the following folders:

  • %Windir%\Panther
  • %Windir%\System32\Sysprep\Panther

Make sure that you save the contents of all the subfolders of these two folders.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Client · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。