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,759 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.
926 questions
{count} votes

11 answers

Sort by: Most helpful
  1. Wayne Pfeffer 1 Reputation point
    2022-11-02T21:32:16.643+00:00

    I am having the exact same issue. I have tried the various workarounds and have even tried uninstalling OneDrive and I still get the error:

    SYSPRP Package Microsoft.OneDriveSync_21220.1024.5.0_neutral__8wekyb3d8bbwe was installed for a user, but not provisioned for all users.

    The environment: Azure VM 4 VCPUs 16GiB RAM 128GB HDD/SSD

    I need to create this Win 11 VM template so I can stand up quite a few VMs and doing it via a template would certainly be a lot easier than having to do it all by hand.

    Wayne E. Pfeffer

    0 comments No comments