症状
在 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 = 0x80310039
2014-11-03 20:57:55, Error SYSPRP RunPlatformActions:Failed while validating SysprepSession actions; dwRet = 0x80310039
2014-11-03 20:57:55, Error [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x80310039
2014-11-03 20:57:55, Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80310039
If you run manage-bde -status command it will show the following:
Disk volumes that can be protected with
BitLocker 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 自动启动基于 Windows 8.1 的支持 InstantGo (备用连接) 的计算机上使用 BitLocker 加密的驱动器,将出现此问题。
解决方案
若要解决此问题,请在命令提示符处,作为管理员,请运行以下命令:
管理 bde-c: 关闭
备注:
-
该命令可能需要一些时间才能完全解密驱动器。您可以运行管理 bde-command 来监视进度。
-
完成完全解密时,您可以再次运行 Sysprep.exe。
-
若要避免此问题,Windows 在初始安装过程,PreventDeviceEncryption 值设置为 True unattend.xml 文件中生成参考图像在 out-of-body 体验 (OOBE) 阶段。有关详细信息,请参阅PreventDeviceEncryption。
详细信息
Unattend.xml 文件中设置值后,将创建下面的注册表子项和注册表项:
子项: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\BitLocker
名称: PreventDeviceEncryption
类型: REG_DWORD
数据: 0x00000001