winutil icon indicating copy to clipboard operation
winutil copied to clipboard

MicroWin wrongly removed Windows Defender

Open andreinoue opened this issue 2 years ago • 10 comments

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:

  1. Download Win11_23H2_EnglishInternational_x64v2.iso from https://www.microsoft.com/en-us/software-download/windows11/.
  2. Tick boxes "Keep Windows Defender" and "Keep Microsoft Edge".
  3. Follow Microwin instructions, selecting Windows 11 Pro as the SKU.
  4. Use the microwin.iso to fresh install Windows 11
  5. Go to Settings > Privacy & security > Windows security
  6. Click on "Open Windows Security"
  7. See error

Expected behavior Expected Windows Defender to be present in microwin.iso

Screenshots image image

Additional context Just noticed there is a "Windows Defender" and a "Windows Defender Advanced Threat Protection" folder in the Program Files, though.

andreinoue avatar Jan 03 '24 02:01 andreinoue

same issue here.

MichTheOcelot avatar Jan 03 '24 07:01 MichTheOcelot

This could be because of the Windows Security AppX package being removed, but I'm not sure. I'll investigate this issue.

CodingWonders avatar Jan 03 '24 10:01 CodingWonders

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

CodingWonders avatar Jan 03 '24 11:01 CodingWonders

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 avatar Jan 03 '24 12:01 CodingWonders

@CodingWonders would you recommend running the entire MicroWin process once again or would just downloading the Windows Defender app from Microsoft Store suffice?

andreinoue avatar Jan 03 '24 12:01 andreinoue

@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

CodingWonders avatar Jan 03 '24 12:01 CodingWonders

Interestingly enough, it is on the Microsoft Store: image It seems you need a Microsoft subscription, though, so I think I'll just run MicroWin again.

andreinoue avatar Jan 03 '24 12:01 andreinoue

Interestingly enough, it is on the Microsoft Store: image It seems you need a Microsoft subscription, though, so I think I'll just run MicroWin again.

That's a different app.

CodingWonders avatar Jan 03 '24 13:01 CodingWonders

Ah, lol. No option, then. Thanks!

andreinoue avatar Jan 03 '24 13:01 andreinoue

Merged @CodingWonders commit to fix this

ChrisTitusTech avatar Jan 03 '24 15:01 ChrisTitusTech