Workaround for installing Windows 11 without the online account requirement

At the first setup screen instead of answering any of the questions press Shift + F10

CMD will open

Type these commands line by line and hit enter after each line.
Replace Username with your desired username.
Beware case sensibility. defaultUser0 must be written exactly like this

This opens registry editor, navigate to

Delete “DefaultAccountAction”, “DefaultAccountSAMName”, and “DefaultAccountSID”

Right-click on
“LaunchUserOOBE” and rename it to “SkipMachineOOBE”
and make sure the value is set to “1”.

Close registry editor and type “shutdown /r /t 0”

Disable AggregatorHost.exe

What is AggregatorHost.exe? I don’t know, but I know how to disable it.

Right click on your taskbar, select Task Manager, go to Services, Open Services, find “Connected User Experience and Telemetry”, right click -> Properties, set Startup Type to Disabled and under Service status press the “Stop” button.

Done and done.