MicroWin wrongly removed Windows Defender
Describe the bug The Windows 11 version I created using MicroWin apparently hasn't got Windows Defender, even though I ticked the "Keep Windows Defender" box in the process of creating the ISO.
To Reproduce Steps to reproduce the behavior:
- Download Win11_23H2_EnglishInternational_x64v2.iso from https://www.microsoft.com/en-us/software-download/windows11/.
- Tick boxes "Keep Windows Defender" and "Keep Microsoft Edge".
- Follow Microwin instructions, selecting Windows 11 Pro as the SKU.
- Use the microwin.iso to fresh install Windows 11
- Go to Settings > Privacy & security > Windows security
- Click on "Open Windows Security"
- See error
Expected behavior Expected Windows Defender to be present in microwin.iso
Screenshots
Additional context Just noticed there is a "Windows Defender" and a "Windows Defender Advanced Threat Protection" folder in the Program Files, though.
same issue here.
This could be because of the Windows Security AppX package being removed, but I'm not sure. I'll investigate this issue.
Confirmed: it is that.
An AppX package in the listing is Microsoft.SecHealthUI_1000.22621.1.0_x64__8wekyb3d8bbwe, which is Windows Security:
[DBG]: PS C:\dev>> $appxProvisionedPackages | Select-Object -ExpandProperty PackageName
Clipchamp.Clipchamp_2.2.8.0_neutral_~_yxz26nhyzhsrt
Microsoft.549981C3F5F10_3.2204.14815.0_neutral_~_8wekyb3d8bbwe
Microsoft.BingNews_4.2.27001.0_neutral_~_8wekyb3d8bbwe
Microsoft.BingWeather_4.53.33420.0_neutral_~_8wekyb3d8bbwe
Microsoft.GamingApp_2021.427.138.0_neutral_~_8wekyb3d8bbwe
Microsoft.GetHelp_10.2201.421.0_neutral_~_8wekyb3d8bbwe
Microsoft.Getstarted_2021.2204.1.0_neutral_~_8wekyb3d8bbwe
Microsoft.HEIFImageExtension_1.0.43012.0_x64__8wekyb3d8bbwe
Microsoft.HEVCVideoExtension_1.0.50361.0_x64__8wekyb3d8bbwe
Microsoft.MicrosoftOfficeHub_18.2204.1141.0_neutral_~_8wekyb3d8bbwe
Microsoft.MicrosoftSolitaireCollection_4.12.3171.0_neutral_~_8wekyb3d8bbwe
Microsoft.MicrosoftStickyNotes_4.2.2.0_neutral_~_8wekyb3d8bbwe
Microsoft.Paint_11.2201.22.0_neutral_~_8wekyb3d8bbwe
Microsoft.People_2020.901.1724.0_neutral_~_8wekyb3d8bbwe
Microsoft.PowerAutomateDesktop_10.0.3735.0_neutral_~_8wekyb3d8bbwe
Microsoft.RawImageExtension_2.1.30391.0_neutral_~_8wekyb3d8bbwe
Microsoft.ScreenSketch_2022.2201.12.0_neutral_~_8wekyb3d8bbwe
Microsoft.SecHealthUI_1000.22621.1.0_x64__8wekyb3d8bbwe
I'll add detections for that option and exclude it from the listing
This issue is fixed in my fork. You will need to perform MicroWin processing once again.
irm https://raw.githubusercontent.com/CodingWonders/winutil/CW-MicroWinFix-Batch2/winutil.ps1 | iex
@CodingWonders would you recommend running the entire MicroWin process once again or would just downloading the Windows Defender app from Microsoft Store suffice?
@CodingWonders would you recommend running the entire MicroWin process once again or would just downloading the Windows Defender app from Microsoft Store suffice?
I don't know if you can just download Windows Security from the Store (it's a system component after all), so I recommend redoing MicroWin
Interestingly enough, it is on the Microsoft Store:
It seems you need a Microsoft subscription, though, so I think I'll just run MicroWin again.
Interestingly enough, it is on the Microsoft Store:
It seems you need a Microsoft subscription, though, so I think I'll just run MicroWin again.
That's a different app.
Ah, lol. No option, then. Thanks!
Merged @CodingWonders commit to fix this
It seems you need a Microsoft subscription, though, so I think I'll just run MicroWin again.