• Home
  • IT
maciejrebisz.com

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

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

Windows-Hello-For-Business-Active-Directory[1]

IT /

How to setup Windows Hello for Business in the new Intune portal

B-Intune-Graphic[1]

IT /

How to deploy Shared Devices with Intune for Education and Autopilot in the future

wp-1593849019379[1]

IT /

Managed browser extensions on Edge with Intune

‹ 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

YouTube

Ad

banner

Ad

banner

Back to Top