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,405 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.
917 questions
{count} votes

11 answers

Sort by: Most helpful
  1. Fredrik Hendeberg 26 Reputation points
    2022-06-22T14:56:52.987+00:00

    In my case OneDrive was installed on another user than the one I was logged in to. So I ran the following in PowerShell:

    Get-AppxPackage -AllUsers Microsoft.OneDriveSync | Remove-AppxPackage -AllUsers

    And after that it worked.

    5 people found this answer helpful.

  2. Rich 16 Reputation points
    2022-09-01T12:38:09.413+00:00

    Thanks, this worked for me: Get-AppxPackage -AllUsers Microsoft.OneDriveSync | Remove-AppxPackage -AllUsers
    Had to run Powershell in Administrator mode. May have also done a restart before running the Sysprep application again.

    3 people found this answer helpful.

  3. Limitless Technology 39,426 Reputation points
    2022-02-16T16:56:04.953+00:00

    Hi @Carl94580345

    This seems to be a bug in Windows 11 and there are many reports being filled by users for the same issue. Many have stated some workaround that has worked for them you can get those workarounds from the below thread.

    Windows 11 MDT Sysprep Failure | OneDrive
    https://learn.microsoft.com/en-us/answers/questions/596112/windows-111-mdt-sysprep-failure-onedrive.html?page=2&pageSize=10&sort=oldest

    These steps may or may not work for you, the best way is to raise feedback to the Microsoft team regarding this. The Feedback Hub app lets you tell Microsoft about any problems you run into https://support.microsoft.com/en-us/windows/send-feedback-to-microsoft-with-the-feedback-hub-app-f59187f8-8739-22d6-ba93-f66612949332

    Hope this resolves your Query!!

    ----------

    --If the reply is helpful, please Upvote and Accept it as an answer--

    1 person found this answer helpful.
    0 comments No comments

  4. Kalyan Sundar 561 Reputation points
    2022-02-10T19:01:42.13+00:00

  5. Simon Ren-MSFT 30,681 Reputation points Microsoft Vendor
    2022-02-28T09:21:15.743+00:00

    Hi,

    Hope everything goes well.

    May we know the current status of the question? If there is any chance to try above suggestion? If it's helpful, it's appreciated that you could click "Accept Answer" and upvote it. This will help other users to search for useful information more quickly.

    If there is any other assistance we can provide, please feel free to let us know, we will do our best to help you.

    Thanks and regards,
    Simon


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments