locked
Sysprep Failure Unable to Validate Windows Installation (Bitlocker) RRS feed

  • 質問

  • First post, so feel free to let me know if I'm doing it wrong...

    I'm trying to run sysprep with an Windows 8.1 pro image (fresh install of 8.1, not an upgrade from 8.0) and keep running into the following error...

    The log below seems to indicate that it thinks that bitlocker is enabled, which it isn't.  I guess the first question is whether or not I'm wrong in my interpretation, and the second is has anyone seen anything like this?

    Much Thanks -

    Mike

    ---

    2013-11-08 15:00:14, Info                  SYSPRP ========================================================
    2013-11-08 15:00:14, Info                  SYSPRP ===          Beginning of a new sysprep run          ===
    2013-11-08 15:00:14, Info                  SYSPRP ========================================================
    2013-11-08 15:00:14, Info       [0x0f004d] SYSPRP The time is now 2013-11-08 15:00:14
    2013-11-08 15:00:14, Info       [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\System32\Sysprep\Panther
    2013-11-08 15:00:15, Info       [0x0f0054] SYSPRP ValidateUser:User has required privileges to sysprep machine
    2013-11-08 15:00:15, Info       [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\System32\Sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
    2013-11-08 15:00:15, Info       [0x0f003d] SYSPRP WinMain:Displaying dialog box for user to choose sysprep mode...
    2013-11-08 15:00:19, Info       [0x0f00d7] SYSPRP WinMain:Pre-validing 'cleanup' internal providers.
    2013-11-08 15:00:19, Info                  SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 3
    2013-11-08 15:00:19, Info       [0x0f00ba] SYSPRP SysprepSession::CreateSession: Successfully created instance with mount path C:, action file C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml, and mode <null>
    2013-11-08 15:00:20, Info                  SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml
    2013-11-08 15:00:20, Info                  SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
    2013-11-08 15:00:20, Info                  SYSPRP ActionPlatform::GetValue: Getting value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
    2013-11-08 15:00:20, Warning               SYSPRP ActionPlatform::GetValue: Error from RegQueryValueEx on value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep; dwRet = 0x2
    2013-11-08 15:00:20, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
    2013-11-08 15:00:20, Info                  SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
    2013-11-08 15:00:20, Info                  SYSPRP ActionPlatform::GetValue: Getting value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
    2013-11-08 15:00:20, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is x86
    2013-11-08 15:00:20, Info       [0x0f0080] SYSPRP ActionPlatform::LaunchModule: Found 'Sysprep_Clean_Validate_Opk' in C:\Windows\System32\spopk.dll; executing it
    2013-11-08 15:00:20, Info       [0x0f0081] SYSPRP ActionPlatform::LaunchModule: Successfully executed 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll without error
    2013-11-08 15:00:20, Info       [0x0f00d7] SYSPRP WinMain:Pre-validing 'generalize' internal providers.
    2013-11-08 15:00:20, Info                  SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 1
    2013-11-08 15:00:20, Info       [0x0f00ba] SYSPRP SysprepSession::CreateSession: Successfully created instance with mount path C:, action file C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml, and mode <null>
    2013-11-08 15:00:20, Info                  SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml
    2013-11-08 15:00:20, Info                  SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
    2013-11-08 15:00:20, Info                  SYSPRP ActionPlatform::GetValue: Getting value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
    2013-11-08 15:00:20, Warning               SYSPRP ActionPlatform::GetValue: Error from RegQueryValueEx on value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep; dwRet = 0x2
    2013-11-08 15:00:20, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
    2013-11-08 15:00:20, Info                  SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
    2013-11-08 15:00:20, Info                  SYSPRP ActionPlatform::GetValue: Getting value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
    2013-11-08 15:00:20, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is x86
    2013-11-08 15:00:20, Info       [0x0f0080] SYSPRP ActionPlatform::LaunchModule: Found 'ValidateBitLockerState' in C:\Windows\System32\BdeSysprep.dll; executing it
    2013-11-08 15:00:20, Error                 SYSPRP BitLocker-Sysprep: BitLocker is on for the OS volume. Turn BitLocker off to run Sysprep. (0x80310039)
    [gle=0x00000001]
    2013-11-08 15:00:20, Error      [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'ValidateBitLockerState' from C:\Windows\System32\BdeSysprep.dll; dwRet = 0x80310039[gle=0x00000001]
    2013-11-08 15:00:20, Error                 SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x80310039
    2013-11-08 15:00:20, Error                 SYSPRP RunPlatformActions:Failed while validating SysprepSession actions; dwRet = 0x80310039
    2013-11-08 15:00:20, Error      [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x80310039
    2013-11-08 15:00:20, Error      [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80310039
    2013-11-08 15:01:00, Info       [0x0f0052] SYSPRP Shutting down SysPrep log
    2013-11-08 15:01:00, Info       [0x0f004d] SYSPRP The time is now 2013-11-08 15:01:00

    2013年11月20日 19:23

回答

  • I solved this same issue by turning BitLocker on and then back off again.  Once off, you need to wait for drive to finish decrypting.  Once finished, sysprep worked for me.

    Tim

    2014年5月28日 16:33
  • I did get an answer that helped, I'm not seeing it here, copy/pasted if anyone else runs into this

    -----------

    I "solved" it by going into BIOS and disabling the TPM module, then re-installing Win8.1.

    Somehow the BDE seems to go into this "waiting" state when a TPM is detected.

    ------------------------------------

    In my case, TPM was already disabled, but it did lead me to look at something else in there called PTT (Intel Platform Trust Technology).    Once disabled, sysprep was able to do its thing.

    2014年1月15日 13:26

すべての返信

  • Hi,

    Are you 100 % Sure that BitLocker is not is process ....?
    I am not sure if it help you but have a try at least.

    1. Navigate to C:\Windows\Panther
        Delete all contents inside that folder (DO NOT Delete the folder itself)

    2. Navigate to C:\Windows\System32\Sysprep
        Delete the files inside this folder (do not delete any folder here, just remove files.)

    Now open the CMD with Admin rights and run Sysprep /Generalize /oobe /reboot

    Do not use any unateend file and see what happen.


    N.A.Malik

    2013年11月20日 21:31
  • 1. Navigate to C:\Windows\Panther

        Delete all contents inside that folder (DO NOT Delete the folder itself)

    Sysprep does not use this folder. What is the reason for deleting its contents? Also what is the reason for deleting the contents of either folder?
    2013年11月21日 18:42
  • Hi. Thanks for the response.   I never enabled it,  the settings lead me to believe it's not on.

    2), I tried your suggestion and hit the same error.

    2013年11月21日 19:58
  • I did get an answer that helped, I'm not seeing it here, copy/pasted if anyone else runs into this

    -----------

    I "solved" it by going into BIOS and disabling the TPM module, then re-installing Win8.1.

    Somehow the BDE seems to go into this "waiting" state when a TPM is detected.

    ------------------------------------

    In my case, TPM was already disabled, but it did lead me to look at something else in there called PTT (Intel Platform Trust Technology).    Once disabled, sysprep was able to do its thing.

    2014年1月15日 13:26
  • I solved this same issue by turning BitLocker on and then back off again.  Once off, you need to wait for drive to finish decrypting.  Once finished, sysprep worked for me.

    Tim

    2014年5月28日 16:33
  • Thank you for this post!  I've been trying for 2 days to make a backup, and sysprep, and that totally worked!
    2014年8月1日 19:55
  • Thanks, you saved me! I encountered this on a Surface Pro. I was wondering why the padlock was showing on the C: drive. I went to BitLocker and it said to activate it - it was not turned on.  I believe BitLocker was on, and then a factory reset was performed.  I believe the drive was in a suspended state in the old OS install and needed to be activated in the restored OS. Turning it on took just a couple seconds. Then, I was able to turn off/decrypt the drive and then sysprep ran without issue.
    • 回答の候補に設定 TemplarIT 2015年7月6日 3:52
    2015年3月25日 16:34
  • I doit with Powershell

    Disable-BitLocker-MountPoint"C:"

    Is easyer as enable and disablte the Bitlocker.


    Roendi

    • 回答の候補に設定 ZackInMass 2017年1月30日 16:50
    2016年5月27日 9:40
  • I turned of Bitlocker on my drive and after that clearing the TPM key in control panel - security also worked for me. I didn't disable tpm.

    • 編集済み Legenware 2017年8月1日 15:11
    2017年8月1日 15:05
  • I got this working by runnning powershell as admin, then:

    Disable-BitLocker -MountPoint "C:" 

    Use the following command to check the status, once down to 0% decrypted, run sysprep again

    • 回答の候補に設定 borigas 2018年6月8日 15:37
    • 回答の候補の設定解除 borigas 2018年6月8日 15:38
    2017年10月25日 10:16
  • Thanks Gavin, This along with other resolutions helped me resolve the issues i was experiencing.  

    I also had issues with specific apps not allowing me to sysprep a machine after the fall update to 1709.  I can't begin to explain the why as to this happened but i know what worked for me was tracking down the errors for specific packages and remove/uninstalling them.  This was mostly through Powershell since a lot of these are in MS's store and weren't able to be removed manually via say, control panel.  

    If anyone reading through these forums is looking for advice, continue looking into the specific app you are having an issue with and you'll eventually come through to the other side.  

    2017年12月22日 19:15
  • This worked, Run powershell as administrator and this command. I was able to sysprep after.
    2018年6月7日 17:24
  • You can also run manage-bde -off "C:"   Has same behavior and also will need to wait for decryption to complete.
    • 編集済み DroffigK 2018年6月16日 1:10 typo
    • 回答の候補に設定 Scjorgen 2018年9月25日 14:53
    2018年6月16日 1:09
  • Running Powershell as Administrator and using manage-bde c: -off will clear the used space encryption. You can check the status of the drive as it decrypts with Manage-bde -status
    2018年9月25日 15:44
  • I ran into the same issue when trying to sysprep. Bitlocker was off but according to the log it was on. I turned it on to allow it to encrypt the drive. Once the drive was encrypted I turned it off and the drive was decrypted. Once that was done, sysprep worked great with not issues.
    2018年11月21日 20:10
  • This was the only thing that worked for me, thanks for your help
    2019年2月13日 8:30
  • Turning on and off bitlocker fixes it.  But why does it happen in the first place?  It's just another ridiculous hoop to jump through besides uninstalling autoloaded apps.  I am prepping Dell Latitude 5501's in Windows 10 1809.  This was the first search result.

    • 編集済み JS2010 2019年12月9日 17:12
    2019年12月9日 17:09
  • Running Powershell as Administrator and using manage-bde c: -off will clear the used space encryption. You can check the status of the drive as it decrypts with Manage-bde -status

    This helped, Sjörgen! THX !! Regards from Berlin

    2020年4月15日 13:01