Share via

Cannot Sysprep a Windows 11 Image because of Microsoft.SecHealthUI 1000.22000.1.0_ neutral _8wekyb3d8bbwe

mpartain 11 Reputation points
Dec 7, 2021, 4:01 PM

I have created a Windows 11 image and am ready to Sysprep it (using Deployment Workbench and a sysprep task sequence). But it won't sysprep. I see in the C:\Windows\setup32\Sysprep\Panther\setuperr.log:

SYSPRP Package Microsoft.SecHealthUI_1000.22000.1.0_neutral__8wekyb3d8bbwe was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.

Normally, that's just remove-appxpackage, but this one won't remove. I have tried first disabling Defender with

set-Mppreference -DisableRealtimeMonitoring $true

I have tried removing the package using dism as well. Neither dism nor remove-appxpackage work - they both just error out.

How can I get this vm to a state where it will sysprep?

Editing to add - I have just tried this on a mostly clean image, where one of the first things I did was to run the set-mppreference command, and it still shows the same error in the log

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

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.