Sysprep help 20h2

Rob85635 1 Reputation point
2020-11-06T19:50:37.633+00:00

Sysprep help needed

I am trying to sysprep a laptop and have done so successfully with this model in the past but it is not working. I just upgraded this to version 20H2. The error is below. Any help would be appreciated.

Info SYSPRP ========================================================
2020-11-05 13:47:34, Info SYSPRP === Beginning of a new sysprep run ===
2020-11-05 13:47:34, Info SYSPRP ========================================================
2020-11-05 13:47:34, Info [0x0f004d] SYSPRP The time is now 2020-11-05 13:47:34
2020-11-05 13:47:34, Info [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\System32\Sysprep\Panther
2020-11-05 13:47:34, Info [0x0f0054] SYSPRP ValidatePrivileges:User has required privileges to sysprep machine
2020-11-05 13:47:34, Info [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\System32\Sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
2020-11-05 13:47:34, Warning SYSPRP WinMain: File operations pending
2020-11-05 13:47:34, Info [0x0f003d] SYSPRP WinMain:Displaying dialog box for user to choose sysprep mode...
2020-11-05 13:47:39, Info [0x0f00d7] SYSPRP WinMain:Pre-validing 'cleanup' internal providers.
2020-11-05 13:47:39, Info SYSPRP RunDlls:Running platform actions specified in action file for phase 3
2020-11-05 13:47:39, Info SYSPRP SysprepSession::CreateSession: Successfully created instance with action file C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml, and mode <null>
2020-11-05 13:47:40, Info SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml
2020-11-05 13:47:40, Info SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
2020-11-05 13:47:40, Info SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
2020-11-05 13:47:40, Info SYSPRP ActionPlatform::LaunchModule: Executing method 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll
2020-11-05 13:47:40, Info SYSPRP Sysprep_Clean_Validate_Opk:Sysprep will run on an upgraded OS.
2020-11-05 13:47:40, 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-11-05 13:47:40, 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-11-05 13:47:40, Info SYSPRP Sysprep_Clean_Validate_Opk: Successfully validated reserves state on the machine for entering audit mode.
2020-11-05 13:47:40, Info SYSPRP ActionPlatform::LaunchModule: Successfully executed 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll
2020-11-05 13:47:40, Info [0x0f00d7] SYSPRP WinMain:Pre-validing 'generalize' internal providers.
2020-11-05 13:47:40, Info SYSPRP RunDlls:Running platform actions specified in action file for phase 1
2020-11-05 13:47:40, Info SYSPRP SysprepSession::CreateSession: Successfully created instance with action file C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml, and mode <null>
2020-11-05 13:47:40, Info SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml
2020-11-05 13:47:40, Info SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
2020-11-05 13:47:40, Info SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
2020-11-05 13:47:40, Info SYSPRP ActionPlatform::LaunchModule: Executing method 'ValidateBitLockerState' from C:\Windows\System32\BdeSysprep.dll
2020-11-05 13:47:40, Info SYSPRP ActionPlatform::LaunchModule: Successfully executed 'ValidateBitLockerState' from C:\Windows\System32\BdeSysprep.dll
2020-11-05 13:47:40, Info SYSPRP ActionPlatform::LaunchModule: Executing method 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll
2020-11-05 13:47:40, Info SYSPRP Entering SysprepGeneralizeValidate (Appx) - validating whether all apps are also provisioned.
2020-11-05 13:47:40, Error SYSPRP Package InputApp_1000.18362.449.0_neutral_neutral_cw5n1h2txyewy was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
2020-11-05 13:47:40, Error SYSPRP Failed to remove apps for the current user: 0x80073cf2.
2020-11-05 13:47:40, Error SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.
2020-11-05 13:47:40, Error SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
2020-11-05 13:47:40, Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
2020-11-05 13:47:40, Error SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2
2020-11-05 13:47:40, Error [0x0f0070] SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
2020-11-05 13:47:40, Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2
2020-11-05 13:47:46, Info [0x0f0052] SYSPRP Shutting down SysPrep log
2020-11-05 13:47:46, Info [0x0f004d] SYSPRP The time is now 2020-11-05 13:47:46

Windows 10 Setup
Windows 10 Setup
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,947 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Cristian SPIRIDON 4,481 Reputation points
    2020-11-06T20:36:25.34+00:00

    Sysprep has an issue if some of existing Store Apps are updated. I think that happened when you upgraded the system to 20H2.

    Please read following documentation for help:
    https://learn.microsoft.com/en-us/troubleshoot/windows-client/deployment/sysprep-fails-remove-or-update-store-apps

    Hope this helps.


  2. 2020-11-16T14:57:42.557+00:00

    Look at the first error in log
    Try this
    remove-appxpackage -allusers InputApp_1000.18362.449.0_neutral_neutral_cw5n1h2txyewy

    0 comments No comments

  3. Rob85635 1 Reputation point
    2020-11-24T16:06:38.443+00:00

    I have tried all suggestions here and I am still getting an error running sysprep. Here is the new log. Thanks for your help.

    2020-11-24 09:03:40, Info SYSPRP === Beginning of a new sysprep run ===
    2020-11-24 09:03:40, Info SYSPRP ========================================================
    2020-11-24 09:03:40, Info [0x0f004d] SYSPRP The time is now 2020-11-24 09:03:40
    2020-11-24 09:03:40, Info [0x0f004e] SYSPRP Initialized SysPrep log at C:\Windows\System32\Sysprep\Panther
    2020-11-24 09:03:40, Info [0x0f0054] SYSPRP ValidatePrivileges:User has required privileges to sysprep machine
    2020-11-24 09:03:40, Info [0x0f007e] SYSPRP FCreateTagFile:Tag file C:\Windows\System32\Sysprep\Sysprep_succeeded.tag does not already exist, no need to delete anything
    2020-11-24 09:03:40, Warning SYSPRP WinMain: File operations pending
    2020-11-24 09:03:40, Info [0x0f003d] SYSPRP WinMain:Displaying dialog box for user to choose sysprep mode...
    2020-11-24 09:03:43, Info [0x0f00d7] SYSPRP WinMain:Pre-validing 'cleanup' internal providers.
    2020-11-24 09:03:43, Info SYSPRP RunDlls:Running platform actions specified in action file for phase 3
    2020-11-24 09:03:43, Info SYSPRP SysprepSession::CreateSession: Successfully created instance with action file C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml, and mode <null>
    2020-11-24 09:03:43, Info SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Cleanup.xml
    2020-11-24 09:03:43, Info SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
    2020-11-24 09:03:43, Info SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
    2020-11-24 09:03:43, Info SYSPRP ActionPlatform::LaunchModule: Executing method 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll
    2020-11-24 09:03:43, Info SYSPRP Sysprep_Clean_Validate_Opk:Sysprep will run on an upgraded OS.
    2020-11-24 09:03:43, Info CSI 00000001 Shim considered [l:125]'\??\C:\WINDOWS\Servicing\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.19041.621_none_e7694895260e0b6d\wcp.dll' : got STATUS_OBJECT_PATH_NOT_FOUND
    2020-11-24 09:03:43, Info CSI 00000002 Shim considered [l:122]'\??\C:\WINDOWS\WinSxS\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.19041.621_none_e7694895260e0b6d\wcp.dll' : got STATUS_SUCCESS
    2020-11-24 09:03:44, Info SYSPRP Sysprep_Clean_Validate_Opk: Successfully validated reserves state on the machine for entering audit mode.
    2020-11-24 09:03:44, Info SYSPRP ActionPlatform::LaunchModule: Successfully executed 'Sysprep_Clean_Validate_Opk' from C:\Windows\System32\spopk.dll
    2020-11-24 09:03:44, Info [0x0f00d7] SYSPRP WinMain:Pre-validing 'generalize' internal providers.
    2020-11-24 09:03:44, Info SYSPRP RunDlls:Running platform actions specified in action file for phase 1
    2020-11-24 09:03:44, Info SYSPRP SysprepSession::CreateSession: Successfully created instance with action file C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml, and mode <null>
    2020-11-24 09:03:44, Info SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml
    2020-11-24 09:03:44, Info SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
    2020-11-24 09:03:44, Info SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
    2020-11-24 09:03:44, Info SYSPRP ActionPlatform::LaunchModule: Executing method 'ValidateBitLockerState' from C:\Windows\System32\BdeSysprep.dll
    2020-11-24 09:03:44, Info SYSPRP ActionPlatform::LaunchModule: Successfully executed 'ValidateBitLockerState' from C:\Windows\System32\BdeSysprep.dll
    2020-11-24 09:03:44, Info SYSPRP ActionPlatform::LaunchModule: Executing method 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll
    2020-11-24 09:03:44, Info SYSPRP Entering SysprepGeneralizeValidate (Appx) - validating whether all apps are also provisioned.
    2020-11-24 09:03:44, Error SYSPRP Package Microsoft.PPIProjection_10.0.18362.449_neutral_neutral_cw5n1h2txyewy was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
    2020-11-24 09:03:44, Error SYSPRP Failed to remove apps for the current user: 0x80073cf2.
    2020-11-24 09:03:44, Error SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.
    2020-11-24 09:03:44, Error SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
    2020-11-24 09:03:44, Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
    2020-11-24 09:03:44, Error SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2
    2020-11-24 09:03:44, Error [0x0f0070] SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
    2020-11-24 09:03:44, Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2
    2020-11-24 09:03:45, Info [0x0f0052] SYSPRP Shutting down SysPrep log
    2020-11-24 09:03:45, Info [0x0f004d] SYSPRP The time is now 2020-11-24 09:03:45


  4. Rob85635 1 Reputation point
    2020-11-25T14:57:36.82+00:00

    I successfully removed that app and another one and on third try I get an error

    Package Microsoft.Windows.Cortana_1.13.0.18362_neutral_neutral_cw5n1h2txyewy was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
    2020-11-25 07:47:39, Error SYSPRP Failed to remove apps for the current user: 0x80073cf2

    I ran remove-appxpackage -allusersMicrosoft.Windows.Cortana_1.13.0.18362_neutral_neutral_cw5n1h2txyewy

    I am now getting what looks like a permissions error:

    PS C:\Users\hamptonm> remove-appxpackage -allusers Microsoft.Messaging_4.1901.10241.1000_x64__8wekyb3d8bbwe
    remove-appxpackage : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
    At line:1 char:1

    • remove-appxpackage -allusers Microsoft.Messaging_4.1901.10241.1000_x6 ...
    • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : NotSpecified: (:) [Remove-AppxPackage], UnauthorizedAccessException
    • FullyQualifiedErrorId : System.UnauthorizedAccessException,Microsoft.Windows.Appx.PackageManager.Commands.Remove
      AppxPackageCommand

    Any ideas on this one? And thanks again. I feel like I am making progress.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.