How to I adjust Microsoft Defender settings in Group Policy Editor in Windows 10?

Step 1

Go to the «Microsoft Defender Antivirus» section in «Windows Components» in Group Policy Editor:
2023-04-09--15-03-02

Step 2

Enable the «Turn off Microsoft Defender Antivirus» option:
2023-04-09--15-05-35
superuser.com/a/1757341

Step 3

Enable the «Real-time protection» → «Turn off real-time protection» option:
2023-04-09--15-10-30
superuser.com/a/1757341

Step 4

Reboot.
superuser.com/a/1757341