Windows11运行sysprep封装报错
这里有一个Win11(24H2)的系统,将所有软件安装好以后,正运行sysprep将系统进行封装。结果无论何都报些错误。如下:

后查看setupact.log日志文件,显示信息如下:
2026-05-08 15:36:35, Info SYSPRP ======================================================== 2026-05-08 15:36:35, Info SYSPRP === Beginning of a new sysprep run === 2026-05-08 15:36:35, Info SYSPRP ======================================================== 2026-05-08 15:36:35, Info [0x0f004d] SYSPRP The time is now 2026-05-08 15:36:35 2026-05-08 15:36:35, Info [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\System32\Sysprep\Panther 2026-05-08 15:36:35, Info [0x0f0054] SYSPRP ValidatePrivileges:User has required privileges to sysprep machine 2026-05-08 15:36:35, Info [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\System32\Sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything 2026-05-08 15:36:35, Info [0x0f003d] SYSPRP WinMain:Displaying dialog box for user to choose sysprep mode... 2026-05-08 15:36:47, Info [0x0f00d7] SYSPRP WinMain:Pre-validing 'cleanup' internal providers. 2026-05-08 15:36:47, Info SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 3 2026-05-08 15:36:47, Info SYSPRP SysprepSession::CreateSession: Successfully created instance with action file C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml, and mode <null> 2026-05-08 15:36:47, Info SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml 2026-05-08 15:36:47, Info SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null> 2026-05-08 15:36:47, Info SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64 2026-05-08 15:36:47, Info SYSPRP ActionPlatform::LaunchModule: Executing method 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll 2026-05-08 15:36:47, Info SYSPRP ActionPlatform::LaunchModule: Successfully executed 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll without error 2026-05-08 15:36:47, Info [0x0f00d7] SYSPRP WinMain:Pre-validing 'generalize' internal providers. 2026-05-08 15:36:47, Info SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 1 2026-05-08 15:36:47, Info SYSPRP SysprepSession::CreateSession: Successfully created instance with action file C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml, and mode <null> 2026-05-08 15:36:47, Info SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml 2026-05-08 15:36:47, Info SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null> 2026-05-08 15:36:47, Info SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64 2026-05-08 15:36:47, Info SYSPRP ActionPlatform::LaunchModule: Executing method 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll 2026-05-08 15:36:47, Info SYSPRP Entering SysprepGeneralizeValidate (Appx) - validating whether all apps are also provisioned. 2026-05-08 15:36:48, Info SYSPRP All appx packages were verified to be inbox or alluser installed. 2026-05-08 15:36:48, Info SYSPRP ActionPlatform::LaunchModule: Successfully executed 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll without error 2026-05-08 15:36:48, Info SYSPRP ActionPlatform::LaunchModule: Executing method 'ValidateBitLockerState' from C:\Windows\System32\BdeSysprep.dll 2026-05-08 15:36:48, Error SYSPRP BitLocker-Sysprep: BitLocker is on for the OS volume. Turn BitLocker off to run Sysprep. (0x80310039) [gle=0x00000001] 2026-05-08 15:36:48, Error SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'ValidateBitLockerState' from C:\Windows\System32\BdeSysprep.dll; dwRet = 0x80310039[gle=0x00000001] 2026-05-08 15:36:48, Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x80310039 2026-05-08 15:36:48, Error SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x80310039 2026-05-08 15:36:48, Error [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x80310039 2026-05-08 15:36:48, Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80310039 2026-05-08 15:36:50, Info [0x0f0052] SYSPRP Shutting down SysPrep log 2026-05-08 15:36:50, Info [0x0f004d] SYSPRP The time is now 2026-05-08 15:36:50
解决方法:
我们需要做的就是打开设置,更新和安全,设备加密,跳转到控制面的BitLocker界面,启用C盘的BitLocker,加密完毕后再解密,重启计算机。再次运行sysprep

浙公网安备 33010602011771号