Microsoft Copilot App Breaking Sysprep

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

About the author

Johan Arwidmark

5 3 votes
Article Rating
Subscribe
Notify of
guest
13 Comments
Newest
Oldest Most Voted
Ilya
Ilya
11 months ago

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 »

Arnis
Arnis
1 year ago

Not only Copilot.
Microsoft.BingSearch and Microsoft.WidgetsPlatformRuntime, too

Darren Steer
Darren Steer
1 year ago

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.

Elorr
Elorr
1 year ago

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

Pete O
Pete O
1 year ago

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

Andrew
Andrew
1 year ago

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.

saran
saran
1 year ago

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 »

Bob
Bob
1 year ago

O….M…G


>