Sysprep error on W11 23H2

Norbert Végh 20 Reputation points
2025-05-06T16:43:33.4633333+00:00

I'm trying to run Sysprep on Windows 11 23H2.

C:\Windows\System32\Sysprep\Panther\setuperr.log shows the following:

SYSPRP RunPlatformActions:Failed while executing Sysprep session actions; dwRet = 0x1501

SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x1501

SYSPRP WinMain:Hit failure while processing sysprep cleanup providers; hr = 0x80071501

I'm aware that some apps need to be removed, being incompatible with Sysprep, so my script attempts removing these ones:

"Microsoft.Xbox*",

    "Microsoft.XboxGameCallableUI",

    "Microsoft.People",

    "Microsoft.ZuneMusic",

    "Microsoft.ZuneVideo",

    "Microsoft.WindowsCommunicationsApps", # Mail & Calendar

    "Microsoft.SkypeApp",

    "Microsoft.MicrosoftOfficeHub",

    "Microsoft.Microsoft3DViewer",

    "Microsoft.MicrosoftStickyNotes",

    "Microsoft.YourPhone",

    "Microsoft.GetHelp",

    "Microsoft.Getstarted",

    "Microsoft.WindowsFeedbackHub",

    "Microsoft.OneConnect",

    "Microsoft.BingWeather",

    "Microsoft.BingNews",

    "Microsoft.Todos",

    "Microsoft.549981C3F5F10",  # Cortana

    "Microsoft.3DBuilder",

    "Microsoft.MicrosoftSolitaireCollection",

    "Microsoft.MixedReality.Portal",

    "Microsoft.XboxSpeechToTextOverlay",

    "Microsoft.WindowsAlarms",

    "Microsoft.WindowsMaps",

    "Microsoft.MicrosoftEdge*",

    "Microsoft.WindowsCamera",

    "Microsoft.Copilot",

    "Microsoft.OneDriveSync",

    "Microsoft.Widgets",

    "Microsoft.Windows.WebExperience"

What could cause this problem and how could I fix it?

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
11,573 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Beatrix 80 Reputation points
    2025-05-08T15:11:12.4666667+00:00

    Hi Nobert,

    Great questions!

    While a few applications can be sensitive to Sysprep, such cases are quite rare. I'd recommend leaving installed applications out of the script for now. Which command or GUI option are you using to run Sysprep?

    Looking forward to your reply.

    0 comments No comments

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.