none
A fatal error occurred while trying to sysprep the machine - Processing cleanup phase sysprep RRS feed

  • Question

  • Hello,

    I have this issue.

    I provide you the log.

    2020-09-21 15:40:30, Info                  SYSPRP ========================================================
    2020-09-21 15:40:30, Info                  SYSPRP ===          Beginning of a new sysprep run          ===
    2020-09-21 15:40:30, Info                  SYSPRP ========================================================
    2020-09-21 15:40:30, Info       [0x0f004d] SYSPRP The time is now 2020-09-21 15:40:30
    2020-09-21 15:40:30, Info       [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\System32\Sysprep\Panther
    2020-09-21 15:40:30, Info       [0x0f0054] SYSPRP ValidatePrivileges:User has required privileges to sysprep machine
    2020-09-21 15:40:30, Info       [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\System32\Sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
    2020-09-21 15:40:30, Info       [0x0f003d] SYSPRP WinMain:Displaying dialog box for user to choose sysprep mode...
    2020-09-21 15:40:33, Info       [0x0f00d7] SYSPRP WinMain:Pre-validing 'cleanup' internal providers.
    2020-09-21 15:40:33, Info                  SYSPRP RunDlls:Running platform actions specified in action file for phase 3
    2020-09-21 15:40:33, Info                  SYSPRP SysprepSession::CreateSession: Successfully created instance with action file C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml, and mode <null>
    2020-09-21 15:40:33, Info                  SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml
    2020-09-21 15:40:33, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
    2020-09-21 15:40:33, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
    2020-09-21 15:40:33, Info                  SYSPRP ActionPlatform::LaunchModule: Executing method 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll
    2020-09-21 15:40:33, Info                  CSI    00000001 Shim considered [l:125]'\??\C:\windows\Servicing\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.19041.504_none_e781e76525fb2269\wcp.dll' : got STATUS_OBJECT_PATH_NOT_FOUND
    2020-09-21 15:40:33, Info                  CSI    00000002 Shim considered [l:122]'\??\C:\windows\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.19041.504_none_e781e76525fb2269\wcp.dll' : got STATUS_SUCCESS
    2020-09-21 15:40:34, Info                  SYSPRP Sysprep_Clean_Validate_Opk: Successfully validated reserves state on the machine for entering audit mode.
    2020-09-21 15:40:34, Info                  SYSPRP ActionPlatform::LaunchModule: Successfully executed 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll
    2020-09-21 15:40:34, Info       [0x0f00d7] SYSPRP WinMain:Pre-validing 'generalize' internal providers.
    2020-09-21 15:40:34, Info                  SYSPRP RunDlls:Running platform actions specified in action file for phase 1
    2020-09-21 15:40:34, Info                  SYSPRP SysprepSession::CreateSession: Successfully created instance with action file C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml, and mode <null>
    2020-09-21 15:40:34, Info                  SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml
    2020-09-21 15:40:34, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
    2020-09-21 15:40:34, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
    2020-09-21 15:40:34, Info                  SYSPRP ActionPlatform::LaunchModule: Executing method 'ValidateBitLockerState' from C:\Windows\System32\BdeSysprep.dll
    2020-09-21 15:40:34, Info                  SYSPRP ActionPlatform::LaunchModule: Successfully executed 'ValidateBitLockerState' from C:\Windows\System32\BdeSysprep.dll
    2020-09-21 15:40:34, Info                  SYSPRP ActionPlatform::LaunchModule: Executing method 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll
    2020-09-21 15:40:34, Info                  SYSPRP Entering SysprepGeneralizeValidate (Appx) - validating whether all apps are also provisioned.
    2020-09-21 15:40:34, Info                  SYSPRP All appx packages were verified to be inbox or alluser installed.
    2020-09-21 15:40:34, Info                  SYSPRP ActionPlatform::LaunchModule: Successfully executed 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll
    2020-09-21 15:40:34, Info       [0x0f004a] SYSPRP WaitThread:Entering spawned waiting thread
    2020-09-21 15:40:34, Info                         [sysprep.exe] UnattendSearchExplicitPath: Found unattend file at [C:\windows\Panther\unattend.xml]; examining for applicability.
    2020-09-21 15:40:34, Info                         [sysprep.exe] UnattendSearchExplicitPath: Found already-processed unattend file for pass [generalize] at [C:\windows\Panther\unattend.xml]; skipping...
    2020-09-21 15:40:34, Info                         [sysprep.exe] UnattendSearchExplicitPath: [C:\windows\Panther\unattend.xml] does not meet criteria to be used for this unattend pass.
    2020-09-21 15:40:35, Info                  SYSPRP SysprepSearchForUnattend: No unattend file was specified or located; skipping unattend generalize pass.
    2020-09-21 15:40:35, Info       [0x0f00ac] SYSPRP WinMain:Processing 'cleanup' external provider request.
    2020-09-21 15:40:35, Info       [0x0f006c] SYSPRP RunDlls:Running DLLs listed in registry for phase 3
    2020-09-21 15:40:35, Info       [0x0f008a] SYSPRP RunRegistryDlls:Retrieved section name for this phase as Cleanup
    2020-09-21 15:40:35, Info       [0x0f008b] SYSPRP RunRegistryDlls:Found entrypoint in registry at SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\SysPrepExternal\Cleanup\A982C619-FBF7-11EA-8263-000D3ABDE46E; will try to launch 'DscCore.dll,SysPrep_Cleanup'
    2020-09-21 15:40:35, Info       [0x0f0080] SYSPRP LaunchDll:Found 'DscCore.dll,SysPrep_Cleanup'; executing it
    2020-09-21 15:40:35, Error      [0x0f0082] SYSPRP LaunchDll:Failure occurred while executing 'DscCore.dll,SysPrep_Cleanup', returned error code 0x2
    2020-09-21 15:40:35, Error      [0x0f0070] SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x2[gle=0x00000006]
    2020-09-21 15:40:35, Error      [0x0f00ae] SYSPRP WinMain:Hit failure while processing sysprep cleanup external providers; hr = 0x80070002[gle=0x00000006]
    2020-09-21 15:40:37, Info       [0x0f004c] SYSPRP WaitThread:Exiting spawned waiting thread
    2020-09-21 15:40:37, Info       [0x0f0052] SYSPRP Shutting down SysPrep log
    2020-09-21 15:40:37, Info       [0x0f004d] SYSPRP The time is now 2020-09-21 15:40:37

     i have run sfc /scannow

    and dism : DISM /Online /Cleanup-Image /RestoreHealth

    Thanks

    Monday, September 21, 2020 3:48 PM