maciejrebisz.com

IT

Capture Windows 10 “Hit failure while pre-validate sysprep” – Failed to remove apps for current user – Mobile-First Cloud-First

maximios May 11, 2021

When running a Build and Capture Task Sequence in MDT – and are using Windows update to getting the image update date. Some times it will fail because some Windows Store Apps are getting update in the user context – and then are a different version than the App that are provisioned in the Operating System.

In the C:UsersADMINI~1AppDataLocalTempSMSTSLogSMSTS.LOG can you see that sysprep is failing

Unknown error (Error: 00001830; Source: Unknown)]LOG]!>

In setup error loggen c:windowssystem32syspreppanthersetuperr.log we can see that a UWP app is installed but not provisioned for all users.

2017-04-13 16:55:20, Error                 SYSPRP Package Microsoft.WindowsCalculator_10.1605.1582.0_x64__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.

2017-04-13 16:55:20, Error                 SYSPRP Failed to remove apps for the current user: 0x80073cf2.

2017-04-13 16:55:20, Error                 SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.

2017-04-13 16:55:20, Error      [0x0f0082] SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing ‘SysprepGeneralizeValidate’ from C:WindowsSystem32AppxSysprep.dll; dwRet = 0x3cf2 2017-04-13 16:55:20, Error                 SYSPRP SysprepSession::Validate: Error in validating actions from C:WindowsSystem32SysprepActionFilesGeneralize.xml; dwRet = 0x3cf2 2017-04-13 16:55:20, Error                 SYSPRP RunPlatformActions:Failed while validating SysprepSession actions; dwRet = 0x3cf2 2017-04-13 16:55:20, Error      [0x0f0070] SYSPRP RunExternalDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2

2017-04-13 16:55:20, Error      [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2

As you can see here – some of the apps are updated during the Build and Capture process because it is on the internet and are communicating with the update service in Windows Store.

To get around this issue you need to disable the feature that are updating the Windows Store Apps while running the Build and Capture Task Sequence – the best way to do this is to put a regkey into the unattend.xml file so it is disabled on the first boot.

Insert This in unattend.xml

Always_Off_Store_Automatic_Download_Install_Updates 6 reg add HKLMSOFTWAREPoliciesMicrosoftWindowsStore /v AutoDownload /t REG_DWORD /d 2 /f

At the end of the Task Sequence create a “Run Command Line” action with this command line:

reg Delete HKLMSOFTWAREPoliciesMicrosoftWindowsStore /v AutoDownload /f

And now you can run a Build and Capture Task Sequence – getting the Operating System updated from Windows Update with out breaking the sysprep step.

Related Posts

IT /

Intune – Windows device enrollment restrictions – Cloud First

IT /

How to add “hidden” Windows UWP to Windows Store for Business – Cloud First

IT /

Office 2016 Active Directory-Based activation – Cloud First

‹ I’m speaking at TechDays 2018 in Stockholm on – Mobile-First Cloud-First › How to customize Windows Defender Security Center with Intune Endpoint Protection profile – Mobile-First Cloud-First

Recent Posts

  • Intune – Windows device enrollment restrictions – Cloud First
  • How to add “hidden” Windows UWP to Windows Store for Business – Cloud First
  • Office 2016 Active Directory-Based activation – Cloud First
  • How to deploy Windows Local Experience Packs with Intune – Cloud First
  • Conditional Access for Outlook Web Access (OWA) – Cloud First

Recent Comments

No comments to show.

Archives

  • November 2025
  • October 2025
  • August 2025
  • July 2025
  • June 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • November 2024
  • September 2024
  • July 2024
  • June 2024
  • March 2024
  • December 2023
  • August 2023
  • June 2023
  • March 2023
  • February 2023
  • December 2022
  • September 2022
  • August 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • January 2022
  • December 2021
  • October 2021
  • September 2021
  • August 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • February 2020
  • January 2020
  • December 2019
  • October 2019
  • September 2019
  • June 2019
  • April 2019
  • March 2019
  • February 2019
  • March 2018
  • February 2018
  • December 2017
  • October 2017
  • August 2017

Categories

  • IT

Back to Top

© maciejrebisz.com 2026
Powered by WordPress • Themify WordPress Themes