none
Sysprep Failure Unable to Validate Windows Installation (Bitlocker)

    Question

  • 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

    Wednesday, November 20, 2013 7:23 PM

Answers

  • 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

    Wednesday, May 28, 2014 4:33 PM
  • 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.

    Wednesday, January 15, 2014 1:26 PM

All replies

  • 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

    Wednesday, November 20, 2013 9:31 PM
  • 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?
    Thursday, November 21, 2013 6:42 PM
  • 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.

    Thursday, November 21, 2013 7:58 PM
  • 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.

    Wednesday, January 15, 2014 1:26 PM
  • 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

    Wednesday, May 28, 2014 4:33 PM
  • Thank you for this post!  I've been trying for 2 days to make a backup, and sysprep, and that totally worked!
    Friday, August 01, 2014 7:55 PM
  • 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.
    • Proposed as answer by TemplarIT Monday, July 06, 2015 3:52 AM
    Wednesday, March 25, 2015 4:34 PM
  • I doit with Powershell

    Disable-BitLocker-MountPoint"C:"

    Is easyer as enable and disablte the Bitlocker.


    Roendi

    • Proposed as answer by ZackInMass Monday, January 30, 2017 4:50 PM
    Friday, May 27, 2016 9:40 AM
  • 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.

    • Edited by Legenware Tuesday, August 01, 2017 3:11 PM
    Tuesday, August 01, 2017 3:05 PM
  • 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

    Wednesday, October 25, 2017 10:16 AM