Or don't bother with the above - install Windows 10 without an online account and just unplug the network card. Download the Win11 upgrade binary. Run the upgrade and keep clicking no to the many (but not excessive) times it suggests to create a Microsoft Account.

Time intensive, but doesn't require much knowledge or pulling hardware.