

It looks to me like this is not intended/expected behaviour so perhaps a bug with the way the OneDrive appx is installed (i.e.


13:37:33, Error SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers hr = 0x80073cf2 13:37:33, Error SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. 13:37:33, Error SYSPRP RunPlatformActions:Failed while validating Sysprep session actions dwRet = 0x3cf2 13:37:33, Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml dwRet = 0x3cf2 13:37:33, Error SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll dwRet = 0x3cf2 13:37:33, Error SYSPRP Exit code of RemoveAllApps thread was 0x3cf2. 13:37:33, Error SYSPRP Failed to remove apps for the current user: 0x80073cf2. This package will not function properly in the sysprep image. 13:37:33, Error SYSPRP Package Microsoft.OneDriveSync_21180.905.7.0_neutral_8wekyb3d8bbwe was installed for a user, but not provisioned for all users.

I can't see any related Provisioned Package (Get-AppxProvisionedPackage) to remove (which would hopefully prevent the appx from being re-provisioned) so the only workaround I have at the moment is to add the removal script (to remove the OneDrive appx) immediately before the sysprep task at the end of the Task Sequence.Įrrors in the 'C:\Windows\System32\sysprep\Panther\setupact.log' are: I have a script containing a suitable 'Remove-AppxPackage' command and this works on the appx but the app immediately reappears after a reboot during the deployment. This is not present in any Windows 10 builds I have tested so looks to be a new feature introduced in Windows 11. The problem looks to be caused by a new UWP app included with Windows 11 for OneDrive: When using an MDT Build and Capture Task Sequence (Standard Client Task Sequence), my Reference image creation fails with a sysprep error when using Windows 11 VLSC media.
