Sysprep unable to Generalize Image due to Microsoft OneDriveSync

LRCS_Tech 31 Reputation points
2022-03-15T13:04:13.817+00:00

We recently received new desktops so we could transition everyone to Windows 11. My issue is when I try to generalize my image I get this error: Package Microsoft.OneDriveSync_21220.1024.5.0_neutral_8wekyb3d8bbwe was installed for a user, but not provisioned for all users. I researched this issue on an earlier attempt at generalizing my image and uninstalled the package with no problem and generalized the first time. Now, I run the commands and nothing happens. I try to install the package nothing happens. I remove the entire AppxPackage and I still get this error. It keeps pointing towards this package as the issue even though I have repeatedly "uninstalled" this package. We currently run a Business version of Office 365 on this image of Windows 11 (fully updated). Any advice would be great.
Note: I run all scripts elevated

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2022-04-11T03:17:40.517+00:00

    Hello @LRCS_Tech

    A few commands might be useful:

    1.Get the package full name, Get-AppxPackage -allusers | Select Name, PackageFullName ; Get-AppxPackage
    2.Get package user information , get-appxpackage -Name WindowsCamera -alluser
    3.Remove-ProvisionedAppxPackage -PackageName Remove-AppxProvisionedPackage

    Best Regards
    Karlie


    If the Answer is helpful, please click "Accept Answer" and upvote it.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.