When installing Windows 11, say you want to log in with your Microsoft account, then when it asks for email address and password enter a@a.com and any random password. It will say the account has been deactivated and let you create a local account. No need to be offline.