memstechtips / UnattendedWinstall

Personalized Unattended Answer Files that helps automatically debloat and customize Windows 10 & 11 during the installation process.
MIT License
2.77k stars 338 forks source link

Also remove windows Defender #6

Closed NazmusSayad closed 3 months ago

NazmusSayad commented 3 months ago

This is the file that can remove Windows Defender:

Generate autounattend.xml files for Windows 10/11, schneegans.de

This is 100% working correctly...


I added all codes related to disabling Windows Defender from here to your answer file. Here is the final file: https://gist.github.com/NazmusSayad/55c788fa16729038f19416d283631c93 This just disables windows defender, nothing else

Note: You can search <!-- NEW: to find what I added. image

But this isn't working. This is giving this error: Screenshot (44)

memstechtips commented 3 months ago

I've taken a look at your file and I'm not really sure why it's not working, but obviously there is an issue in the Windows PE phase according to your screenshot, or at least, something that's referenced in the Windows PE phase. I will see if I can make a separate file that removes defender or at least fix yours.

NazmusSayad commented 3 months ago

@memstechtips

I had installed an XML formatter in my VSCode. When saving the file, it was organizing the code and making the XML file unreadable by Microsoft. After disabling the formatter, everything is now working fine. However, formatting something shouldn't cause an error... I have no idea why.

Sorry for wasting your time.

vuquangtrong commented 2 months ago

@NazmusSayad I could not disable Windows Defender on Windows 11 24H2 image (I use UUP dump to make iso). On which version of Windows did you succesfully remove Defender?

NazmusSayad commented 1 month ago

@NazmusSayad I could not disable Windows Defender on Windows 11 24H2 image (I use UUP dump to make iso). On which version of Windows did you succesfully remove Defender?

Answer file doesn't work perfectly with unofficial or uupdump iso.