search cancel

Cannot prepare system for IMAGING due to SYSPREP failing on Cortana

book

Article ID: 226372

calendar_today

Updated On:

Products

Ghost Solution Suite Deployment Solution

Issue/Introduction

 Cortana is stopping SYSPREP from working properly.

From setuperr log file:

--- START ---

2021-10-14 13:47:53, Error                 SYSPRP 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.
2021-10-14 13:47:53, Error                 SYSPRP Failed to remove apps for the current user: 0x80073cf2.
2021-10-14 13:47:53, Error                 SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.
2021-10-14 13:47:53, Error                 SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
2021-10-14 13:47:53, Error                 SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
2021-10-14 13:47:53, Error                 SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2
2021-10-14 13:47:53, Error      [0x0f0070] SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
2021-10-14 13:47:53, Error      [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2

--- END ---

I have used the PowerShell scripts to remove all APPS, changed the registry settings and gone through the prep document: Prepare for image capture 

Environment

Release : 3.3

Component :

Cause

App was not provisioned for all users

Resolution

 

in Powershell enter: Remove-AppxProvisionedPackage -Online -PackageName Cortana_1.13.0.18362 against all users who have logged onto the system

Or 

delete the user profiles from the system that are not needed

run through article once more: Prepare for image capture  till errors no longer appear in the setuperr log file