/build/static/layout/Breadcrumb_cap_w.png

Best Practices Question


Windows 10v1803 A fatal error occurred while trying to sys-prep the machine.

05/23/2018 4437 views
Windows 10v1803 A fatal error occurred while trying to sys-prep the machine. Anyone else having this issue or have a fix? I have a used this machine for reference images before and just updated to 1803 nothing else changed. 


C:\:\Windows\system32/sysprep/panther/stuperr.log


Thanks,
Alex
Answer Summary:
5 Comments   [ + ] Show comments

Comments

  • And ..
    What do you see inside the Sysprep log generated by Windows?

    C:\Windows\System32\sysprep\Panther

    or

    C:\Windows\Panther
  • Updated the post with screenshots of those directories.
    • Ok but, we need to see what is inside the SetupErr log...

      Also
      Did you use the Quest Sysprep Creator tool?
      • 2018-05-23 14:08:18, Error SYSPRP MRTGeneralize:107 - ERROR: Failed DeleteInstance AntiSpywareProduct.instanceGuid="{D68DDC3A-831F-4FAE-9E44-DA132C1ACF46}" hr=2147749890
        2018-05-23 14:08:18, Error SYSPRP MRTGeneralize:116 - ERROR: Failed DeleteInstance AntiVirusProduct.instanceGuid="{D68DDC3A-831F-4FAE-9E44-DA132C1ACF46}" hr=2147749890
        2018-05-23 14:08:18, Error SYSPRP Failed to remove staged package Microsoft.Windows.SecondaryTileExperience_10.0.0.0_neutral__cw5n1h2txyewy: 0x80070002.
        [gle=0x00000002]
        2018-05-23 14:08:18, Error SYSPRP Failed to remove apps for the current user: 0x80070002.

        2018-05-23 14:08:18, Error SYSPRP Exit code of RemoveAllApps thread was 0x2.
        [gle=0x0000012a]
        2018-05-23 14:08:18, Error SYSPRP Failed to remove all apps: 0x80070002.
        [gle=0x0000012a]
        2018-05-23 14:08:18, Error SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralize' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x2[gle=0x0000012a]
        2018-05-23 14:08:18, Error SYSPRP SysprepSession::ExecuteAction: Failed during sysprepModule operation; dwRet = 0x2[gle=0x0000012a]
        2018-05-23 14:08:18, Error SYSPRP SysprepSession::ExecuteInternal: Error in executing action for Microsoft-Windows-AppX-Sysprep; dwRet = 0x2[gle=0x0000012a]
        2018-05-23 14:08:18, Error SYSPRP SysprepSession::Execute: Error in executing actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x2
        2018-05-23 14:08:18, Error SYSPRP RunPlatformActions:Failed while executing Sysprep session actions; dwRet = 0x2
        2018-05-23 14:08:18, Error [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x2
        2018-05-23 14:08:18, Error [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep generalize internal providers; hr = 0x80070002
  • Yes i used the tool. This is the same process that we have used for all other images 1709 and bellow. We also are using the most recent sysprep tool in Kace Support download.

    Attached is screenshot of the errors
    • A third-party software is preventing Windows from triggering Sysprep

      Do you have any antivirus installed?
      Or any encryption related software?

      The only AV installed should the one Win10 has (Windows Defender)

      Also is this a Win10 built from an ISO from MSDN or your Volume License Page?

      If no help, you’d better use clean 1803 image for Sysprep, rather than an upgraded one.
  • I only have a defender on here.
    No encryption software.
    Volume License Page ISO for this image.

    This machine has been sysprepped and used for many images. We have it up on an ESXi host and can snapshot it back.

    -Alex
  • I had the same issue, I was able to resolved previously doing this:

    HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\GeneralizationState\
    CleanupState:2

    HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\GeneralizationState\
    GeneralizationState:7

    After done with the registry, do the following :

    Start -> Run : msdtc -uninstall (wait few seconds)
    Start -> Run : msdtc -install (wait few seconds)
    Restart the machine
    Check the registry for the right registry keys values
    sysprep again.

    However, after upgrading to 1803 this appx Microsoft.Windows.SecondaryTileExperience_10.0.0.0_neutral__cw5n1h2txyewy was as "staged" status and that was my road block, and after many hours of power shell commands I just decide to rebuild my image from scratch with a VL Disk of 1803.

    I did use all the Quest provided tools on both cases.
    • So it sounds like i am rebuilding this full image over again?

Answer Chosen by the Author

1
Sounds like upgrading to 1803 will not work for sys-prepping a machine.
Install a new copy of Win10 1803 and start your image over will fix the issue. Yay to losing a day of work on installing an OS.

-Alex
Answered 05/29/2018 by: adavenport
Senior White Belt