Quick Sysprep update! Starting with November 2024 installation media, both Windows 10 and Windows 11 has the Copilot app installed by default. Even if the device had no Internet access during deployment. This breaks Sysprep in a very bad way, and the device is basically toast at that point.

Before running Sysprep, you need to remove Copilot from the VM by running the following command:
Get-AppxPackage -Name Microsoft.Copilot | Remove-AppxPackage
The Error
If you don't remove the Copilot app, you'll see the following error in your Setuperr.log file (found in the C:\Windows\System32\Sysprep\Panther folder):
2024-12-03 17:22:50, Error SYSPRP Package Microsoft.Copilot_0.4.2.0_neutral__8wekyb3d8bbwe failed waiting for remove operation to complete with hr = 0x80073cf1.
2024-12-03 17:22:50, Error SYSPRP Failed to remove apps for the current user: 0x80073cf1.
2024-12-03 17:22:50, Error SYSPRP Exit code of RemoveAllApps thread was 0x3cf1.
2024-12-03 17:22:50, Error SYSPRP Failed to remove all apps: 0x80073cf1.
2024-12-03 17:22:50, Error SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralize' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf1
2024-12-03 17:22:50, Error SYSPRP SysprepSession::ExecuteAction: Failed during sysprepModule operation; dwRet = 0x3cf1
2024-12-03 17:22:50, Error SYSPRP SysprepSession::ExecuteInternal: Error in executing action for Microsoft-Windows-AppX-Sysprep; dwRet = 0x3cf1
2024-12-03 17:22:50, Error SYSPRP SysprepSession::Execute: Error in executing actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf1
2024-12-03 17:22:50, Error SYSPRP RunPlatformActions:Failed while executing Sysprep session actions; dwRet = 0x3cf1
2024-12-03 17:22:50, Error [0x0f0070] SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf1
2024-12-03 17:22:50, Error [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep generalize internal providers; hr = 0x80073cf1
TLDR: You have to run this command on every user profile that has logged on to the machine. I had the same issue with a domain joined VM. I ran Get-AppxPackage -Name Microsoft.Copilot | Remove-AppxPackage with my domain account and it removed it only for the current user I was logged in. I then logged in with the local admin account (only other account on this VM) and ran Get-AppxPackage -Name Microsoft.copilot* and it found the app x package for local admin account as well. I ran Get-AppxPackage -Name Microsoft.Copilot | Remove-AppxPackage and it removed it. After, sysprep went through… Read more »
Thanks for the info, but a VM used for a reference image should never be joined to a domain
Not only Copilot.
Microsoft.BingSearch and Microsoft.WidgetsPlatformRuntime, too
Thanks for the heads up!
No longer an issue – mine errored but did not make the machine toast – a reboot was enough to fix it – also it does not error out at all if you do sysprep at the actual oobe you get when installing. but maybe co-pilot is not installed until after the oobe.
I think this has been resolved in newer versions of the media.
I was able to get this to work by going into the Microsoft Store and Installing Microsoft Copilot & Microsoft Copilot 365. Went to Apps & Settings and uninstall both Microsoft Copilot. Ran Sysprep with generalization – worked
For the windows 10 cumulative January update (01-2025) bing search appx is causing this sysprep error (Microsoft.BingSearch_1.0.92.0_x64__8wekyb3d8bbwe). Had to add it to my remove appx power shell task in MDT after my task sequence suspend task.
Microsoft has a pretty good write up about this:
https://learn.microsoft.com/en-us/troubleshoot/windows-client/setup-upgrade-and-drivers/sysprep-fails-remove-or-update-store-apps
Thanks for the info
I had the same issue with "Microsoft.BingSearch" with an earlier Windows 11 installation media. (even though I was running my VM without any internet access) så i had to remove that package as well before sysprep.
Is this same Johan or can you please guide me. I have tried stopping the DO service but not helping 🙁 2024-12-18 08:39:29, Info SYSPRP ActionPlatform::LaunchModule: Successfully executed 'SysprepCleanupEnableCustomTrigger' from C:\Windows\System32\generaltel.dll 2024-12-18 08:39:29, Info SYSPRP ActionPlatform::LaunchModule: Executing method 'SysprepCleanupEnableCustomTrigger' from C:\Windows\System32\dcntel.dll 2024-12-18 08:39:29, Info SYSPRP ActionPlatform::LaunchModule: Successfully executed 'SysprepCleanupEnableCustomTrigger' from C:\Windows\System32\dcntel.dll 2024-12-18 08:39:29, Info SYSPRP SysprepSession::ExecuteAction: stopService with parameters: pstrServiceName:dosvc, dwTimeout:60000, bStopDependentService:0, bIgnoreFailureToStopDependentService:1 2024-12-18 08:39:29, Error SYSPRP SysprepSession::Execute: Unexpected exception; Stack trace: void __cdecl UnBCL::Directory::DeleteInternal(const class UnBCL::String *,int,unsigned long,unsigned long) void __cdecl UnBCL::File::DeleteInternal(const class UnBCL::String *,int) 2024-12-18 08:39:29, Error SYSPRP RunPlatformActions:Failed while executing Sysprep session actions; dwRet = 0x1501 2024-12-18 08:39:29, Error [0x0f0070] SYSPRP RunDlls:An error occurred while… Read more »
Build your reference image on a VM without Internet access, and then remove the Copilot app before running Sysprep. If you run Sysprep before that, the machine is toast, and you must start over.
/ Johan
O….M…G