Microsoft encourages users to activate Windows 11 through official channels:
Modern Windows Defender detects MAS as "HackTool:Win32/AutoKMS" or similar. While this is a false positive (the tool isn't malware), Defender will block execution. You must disable "Real-time protection" in Windows Security settings. mas activator windows 11