none
Task Sequence fails during Sysprep - Failed to remove Apps for the current user RRS feed

  • Question

  • Hello,

    I am trying to create a reference image for a new Surface Pro 3 here at work.  I get 93% done with my Task Sequence but it fails during the Sysprep phase.  I am so darn close!  Below is my setupact log file from the Panther folder.  I see the issue is with a Microsoft app called "Pacakage Microsoft.GetHelp_10.1706.10441.0.  My question is how do I fix this error?  

    2018-08-14 11:46:47, Info                  SYSPRP SysprepSession::CreateSession: Successfully created instance with action file C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml, and mode <null>
    2018-08-14 11:46:47, Info                  SYSPRP SysprepSession::Validate: Beginning action execution from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml
    2018-08-14 11:46:47, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Sysprep mode in registry is <null>
    2018-08-14 11:46:47, Info                  SYSPRP SysprepSession::CreateXPathForSelection: Processor architecture in registry is AMD64
    2018-08-14 11:46:47, Info                  SYSPRP ActionPlatform::LaunchModule: Executing method 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll
    2018-08-14 11:46:47, Info                  SYSPRP Entering SysprepGeneralizeValidate (Appx) - validating whether all apps are also provisioned.

    2018-08-14 11:46:47, Error                 SYSPRP Package Microsoft.GetHelp_10.1706.10441.0_x64__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.

    2018-08-14 11:46:47, Error                 SYSPRP Failed to remove apps for the current user: 0x80073cf2.

    2018-08-14 11:46:47, Error                 SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.

    2018-08-14 11:46:47, Error                 SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
    2018-08-14 11:46:47, Error                 SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
    2018-08-14 11:46:47, Error                 SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2
    2018-08-14 11:46:47, Error      [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
    2018-08-14 11:46:47, Error      [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2
    2018-08-14 11:46:47, Info       [0x0f0052] SYSPRP Shutting down SysPrep log
    2018-08-14 11:46:47, Info       [0x0f004d] SYSPRP The time is now 2018-08-14 11:46:47

    

    Note:  In my tast sequence I have enabled both "Windows Update (Pre-Application Install.) and "Windows Update (Post Application Install.)

    Note 2:  Thinking about adding a "Suspend" sequence before Imaging Group starts and remove all Store Apps.

    Any suggestions or direction would be greatly appreciated.

    Regards,

    Adrian



    Tuesday, August 14, 2018 7:24 PM

All replies

  • Check this Reference link.

    https://blogs.technet.microsoft.com/mniehaus/2015/11/11/removing-windows-10-in-box-apps-during-a-task-sequence/

    • Proposed as answer by power270 Sunday, August 19, 2018 5:30 PM
    Thursday, August 16, 2018 2:32 PM
  • Hi Adrian,

    Enter the below into your custom.ini file and then try and re-run your task sequence.

    HIDESHELL=YES

    Adding this into your task sequence is a known workaround for the issue you're experiencing. Also, make sure to update your deployment share and remove this line from your custom.ini once you've completed the capture.

    Monday, August 20, 2018 9:57 AM
  • I have to add a question to this link posted...

    If I am trying to run a Sysprep & Capture task Sequence, where Sysprep is failing....and NOT a TS above,
    how can I add any steps in his example? In my situation, my SYSPREP & CAPTURE TS is where Sysprep is failing, not in a Deploy TS, so I remain in a failed state. I am not clear on doing a Sysprep step inside of a Deploy TS.

    If my sysprep is failing in a Sysprep & Capture TS, then how do I get past the Apps issue when I try to create a WIM from my VM?
    Thanks

    Tuesday, August 21, 2018 3:35 PM
  • Hey! Basically Sysprep fails most of times as some of the UWP Apps is installed for current users but not provisioned for all user.  

    Reference link

    Before starting sysprep I will suggest you to use only one Account for All configuration or Run the unwanted App Removal Scripts in reference machine. 

    AppRemoveScripts

     
    Wednesday, August 22, 2018 5:59 AM
  • Great. Thanks! Where in my Capture and Sysprep Task Sequence do I add the script during my capture to create a WIM?
     According to the link and diagram, he is adding the script to the Deploy TS, which implies he already has a WIM created. I'm trying to create a WIM, which you do in Sysprep and Capture.
    • Edited by the1rickster Wednesday, August 22, 2018 12:31 PM
    Wednesday, August 22, 2018 12:29 PM