症状
在 Microsoft Surface Pro 3 上运行 Sysprep.exe 时,可能会收到以下错误消息:
Sysprep was not able to validate your Windows installation. Review the log file at %windir%\system32\Sysprep\panther\setupact.log for details. After resolving the issue use Sysprep to validate your installation again. Reviewing the setupact.log may show the following errors:2014-11-03 20:57:55, Error SYSPRP BitLocker-Sysprep: BitLocker is on for the OS volume. Turn BitLocker off to run Sysprep. (0x80310039)[gle=0x00000001]2014-11-03 20:57:55, Error [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'ValidateBitLockerState' from C:\Windows\System32\BdeSysprep.dll; dwRet = 0x80310039[gle=0x00000001]2014-11-03 20:57:55, Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x803100392014-11-03 20:57:55, Error SYSPRP RunPlatformActions:Failed while validating SysprepSession actions; dwRet = 0x803100392014-11-03 20:57:55, Error [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x803100392014-11-03 20:57:55, Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80310039If you run manage-bde -status command it will show the following:Disk volumes that can be protected withBitLocker Drive Encryption:Volume C: [OSDisk][OS Volume] Size: 118.34 GB BitLocker Version: 2.0 Conversion Status: Encryption in Progress Percentage Encrypted: 97.8% Encryption Method: AES 128 Protection Status: Protection Off Lock Status: Unlocked Identification Field: Unknown Key Protectors: None Found
注意 在支持连接待机的任何系统上都可能出现此问题。
原因
出现此问题的原因是,Windows 在支持 InstantGo (连接待机) 的基于 Windows 8.1 的计算机上使用 BitLocker 自动开始加密驱动器。
解决方法
若要解决此问题,请在命令提示符中以管理员身份运行以下命令:manage-bde -off c:Notes
-
命令可能需要一些时间才能完全解密驱动器。 可以运行 manage-bde -status 命令来监视进度。
-
完全解密完成后,可以再次运行 Sysprep.exe。
-
若要在初始安装 Windows 期间防止此问题,请在 unattend.xml 文件中将 PreventDeviceEncryption 值设置为 True, (OOBE) 阶段生成引用映像。 有关详细信息,请参阅 PreventDeviceEncryption。
更多信息
在 unattend.xml 文件中设置值后,将创建以下注册表子项和注册表项:
子项:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\BitLocker名称:PreventDeviceEncryption类型:REG_DWORD数据:0x00000001