Windows 11 will not sysprep do to onedrive

Carl94580345 31 Reputation points
2022-02-09T21:18:29.567+00:00

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

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,660 questions
Microsoft Configuration Manager Deployment
Microsoft Configuration Manager Deployment
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Deployment: The process of delivering, assembling, and maintaining a particular version of a software system at a site.
923 questions
{count} votes

11 answers

Sort by: Most helpful
  1. RobinAerospaceITTech-4397 1 Reputation point
    2022-06-17T21:06:31.783+00:00

    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

    0 comments No comments

  2. RobinAerospaceITTech-4397 1 Reputation point
    2022-06-22T15:15:06.057+00:00

    Thank you for your response. I employed that solution but my syntax differed. I'll give yours a try and report back. rsp


  3. David Rutt 1 Reputation point
    2022-08-24T17:55:24.193+00:00

    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.


  4. RobinAerospaceITTech-4397 1 Reputation point
    2022-08-24T18:57:27.07+00:00

    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!


  5. Keith Williams 21 Reputation points
    2022-09-19T04:58:25.813+00:00