This continues to be a bug for me and previously stated workarounds have not resolved this exact issue with Windows 11 sysprep. I would welcome any additional remedies, fixes or workarounds not previously mentioned.
Thanks rsp
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
In spite of removing Microsoft.OneDriveSync, the sysprep errors continued
2022-02-09 14:25:11, Error SYSPRP Package Microsoft.OneDriveSync_21220.1024.5.0_neutral__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
2022-02-09 14:25:11, Error SYSPRP Failed to remove apps for the current user: 0x80073cf2.
2022-02-09 14:25:11, Error SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.
2022-02-09 14:25:11, Error SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
2022-02-09 14:25:11, Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
2022-02-09 14:25:11, Error SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2
2022-02-09 14:25:11, Error [0x0f0070] SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
2022-02-09 14:25:11, Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2
2022-02-09 14:42:30, Error SYSPRP Package Microsoft.OneDriveSync_21220.1024.5.0_neutral__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
2022-02-09 14:42:30, Error SYSPRP Failed to remove apps for the current user: 0x80073cf2.
2022-02-09 14:42:30, Error SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.
2022-02-09 14:42:30, Error SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
2022-02-09 14:42:30, Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
2022-02-09 14:42:30, Error SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2
2022-02-09 14:42:30, Error [0x0f0070] SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
2022-02-09 14:42:30, Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2
2022-02-09 14:55:38, Error SYSPRP Package Microsoft.OneDriveSync_21220.1024.5.0_neutral__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.
2022-02-09 14:55:38, Error SYSPRP Failed to remove apps for the current user: 0x80073cf2.
2022-02-09 14:55:38, Error SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.
2022-02-09 14:55:38, Error SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2
2022-02-09 14:55:38, Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2
2022-02-09 14:55:38, Error SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2
2022-02-09 14:55:38, Error [0x0f0070] SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2
2022-02-09 14:55:38, Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2
This continues to be a bug for me and previously stated workarounds have not resolved this exact issue with Windows 11 sysprep. I would welcome any additional remedies, fixes or workarounds not previously mentioned.
Thanks rsp
Thank you for your response. I employed that solution but my syntax differed. I'll give yours a try and report back. rsp
Any luck, this has been driving me bonkers. We uninstall onedrive, made sure it was uninstalled and it still barfs of the sysprep. We have image hundreds of PCs and laptops in Windows 10.
I made these changes and then was able to successfully create a Win 11 image after Sysprep with "Shutdown" option:
1) Disabled Bitlocker at (administrative) CMD prompt: “manage-bde -off C:”
…type “manage-bde -status” to make sure drive is decrypted and Bitlocker is off.
2) In Powershell I ran this command: “Get-AppxPackage -AllUsers Microsoft.OneDriveSync | Remove-AppxPackage -AllUsers”
...this is due to an error using Sysprep under Win11 and Microsoft OneDriveSync.
It worked for me! Hope that helps!
Probably look into "How to correctly deploy OneDrive via sysprep" at https://github.com/MicrosoftDocs/OfficeDocs-Support/blob/public/SharePoint/OneDrive/lists-and-libraries/cannot-open-onedrive-on-images-using-sysprep.md