none
Fatal Sysprep error in win8.1Pro

    Question

  • When running sysprep, you receive the following error message: "Fatal error attempting to run sysprep on the computer". The following is the error logs contained in the Panther folder.

    File setupact

    2018-07-04 15:18:05, Info                  SYSPRP ========================================================
    2018-07-04 15:18:05, Info                  SYSPRP ===          Beginning of a new sysprep run          ===
    2018-07-04 15:18:05, Info                  SYSPRP ========================================================
    2018-07-04 15:18:05, Info       [0x0f004d] SYSPRP The time is now 2018-07-04 15:18:05
    2018-07-04 15:18:05, Info       [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\System32\Sysprep\Panther
    2018-07-04 15:18:05, Info       [0x0f0054] SYSPRP ValidateUser:User has required privileges to sysprep machine
    2018-07-04 15:18:05, Info       [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\System32\Sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
    2018-07-04 15:18:05, Warning               SYSPRP WinMain: File operations pending
    2018-07-04 15:18:05, Info       [0x0f003d] SYSPRP WinMain:Displaying dialog box for user to choose sysprep mode...
    2018-07-04 15:18:09, Info       [0x0f00d7] SYSPRP WinMain:Pre-validing 'cleanup' internal providers.
    2018-07-04 15:18:09, Info                  SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 3
    2018-07-04 15:18:09, Info       [0x0f00ba] SYSPRP SysprepSession::CreateSession: Successfully created instance with mount path C:, action file C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml, and mode <null>
    2018-07-04 15:18:09, Info                  SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml
    2018-07-04 15:18:09, Info                  SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
    2018-07-04 15:18:09, Info                  SYSPRP ActionPlatform::GetValue: Getting value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
    2018-07-04 15:18:09, Warning               SYSPRP ActionPlatform::GetValue: Error from RegQueryValueEx on value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep; dwRet = 0x2
    2018-07-04 15:18:09, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
    2018-07-04 15:18:09, Info                  SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
    2018-07-04 15:18:09, Info                  SYSPRP ActionPlatform::GetValue: Getting value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
    2018-07-04 15:18:09, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
    2018-07-04 15:18:09, Info       [0x0f0080] SYSPRP ActionPlatform::LaunchModule: Found 'Sysprep_Clean_Validate_Opk' in C:\Windows\System32\spopk.dll; executing it
    2018-07-04 15:18:09, Info       [0x0f0081] SYSPRP ActionPlatform::LaunchModule: Successfully executed 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll without error
    2018-07-04 15:18:09, Info       [0x0f00d7] SYSPRP WinMain:Pre-validing 'generalize' internal providers.
    2018-07-04 15:18:09, Info                  SYSPRP RunExternalDlls:Running platform actions specified in action file for phase 1
    2018-07-04 15:18:09, Info       [0x0f00ba] SYSPRP SysprepSession::CreateSession: Successfully created instance with mount path C:, action file C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml, and mode <null>
    2018-07-04 15:18:09, Info                  SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml
    2018-07-04 15:18:09, Info                  SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
    2018-07-04 15:18:09, Info                  SYSPRP ActionPlatform::GetValue: Getting value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep
    2018-07-04 15:18:09, Warning               SYSPRP ActionPlatform::GetValue: Error from RegQueryValueEx on value SysprepMode under key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup\Sysprep; dwRet = 0x2
    2018-07-04 15:18:09, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
    2018-07-04 15:18:09, Info                  SYSPRP ActionPlatform::GetStringValue: Getting REG_SZ value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
    2018-07-04 15:18:09, Info                  SYSPRP ActionPlatform::GetValue: Getting value PROCESSOR_ARCHITECTURE under key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
    2018-07-04 15:18:09, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
    2018-07-04 15:18:09, Info       [0x0f0080] SYSPRP ActionPlatform::LaunchModule: Found 'ValidateBitLockerState' in C:\Windows\System32\BdeSysprep.dll; executing it
    2018-07-04 15:18:09, Info       [0x0f0081] SYSPRP ActionPlatform::LaunchModule: Successfully executed 'ValidateBitLockerState' from C:\Windows\System32\BdeSysprep.dll without error
    2018-07-04 15:18:09, Info       [0x0f004a] SYSPRP WaitThread:Entering spawned waiting thread
    2018-07-04 15:18:09, Info                         [sysprep.exe] UnattendSearchExplicitPath: Found unattend file at [C:\Windows\Panther\unattend.xml]; examining for applicability.
    2018-07-04 15:18:09, Info                         [sysprep.exe] UnattendSearchExplicitPath: [C:\Windows\Panther\unattend.xml] does not meet criteria to be used for this unattend pass.
    2018-07-04 15:18:10, Info                  SYSPRP SysprepSearchForUnattend: No unattend file was specified or located; skipping unattend generalize pass.
    2018-07-04 15:18:10, Info       [0x0f00ac] SYSPRP WinMain:Processing 'cleanup' external provider request.
    2018-07-04 15:18:10, Error      [0x0f0073] SYSPRP RunExternalDlls:Not running DLLs; either the machine is in an invalid state or we couldn't update the recorded state, dwRet = 0x1f
    2018-07-04 15:18:10, Error      [0x0f00ae] SYSPRP WinMain:Hit failure while processing sysprep cleanup external providers; hr = 0x8007001f
    2018-07-04 15:18:11, Info       [0x0f004c] SYSPRP WaitThread:Exiting spawned waiting thread
    2018-07-04 15:18:11, Info       [0x0f0052] SYSPRP Shutting down SysPrep log
    2018-07-04 15:18:11, Info       [0x0f004d] SYSPRP The time is now 2018-07-04 15:18:11

    File setuperr

    2018-07-04 15:18:10, Error      [0x0f0073] SYSPRP RunExternalDlls:Not running DLLs; either the machine is in an invalid state or we couldn't update the recorded state, dwRet = 0x1f
    2018-07-04 15:18:10, Error      [0x0f00ae] SYSPRP WinMain:Hit failure while processing sysprep cleanup external providers; hr = 0x8007001f

    Wednesday, July 04, 2018 8:03 PM

All replies

  • Hi,

    Use regedit to change the below reg keys to match

    HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\GeneralizationState\

    CleanupState:2

    HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\GeneralizationState\

    GeneralizationState:7

    Reference:

    Windows 8.1 Syprep "Fatal Error" WinMain:Hit

    http://andrewpsheehan.blogspot.com/2013/09/windows-81-syprep-fatal-error-winmainhit.html

    Good luck

    Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

    Regards


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Thursday, July 05, 2018 1:39 AM
    Moderator
  • We have not heard from you in a couple of days. Please post back at your convenience if we can assist further.

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Friday, July 06, 2018 9:02 AM
    Moderator