Cannot prepare system for IMAGING due to SYSPREP failing on Cortana ( sysprep error 0x3cf2 )
search cancel

Cannot prepare system for IMAGING due to SYSPREP failing on Cortana ( sysprep error 0x3cf2 )

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 ---

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

Environment

DS 8.x

GSS 3.x

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.

Then run through the following article once more or until errors no longer appear in the setuperr log file:

171149 Prepare Windows 11 or Windows 10 to run Sysprep through Ghost Solution Suite Capture Image Task