If the command above doesn't work for your specific version of Windows, you can try force-closing the network connection requirement process.
Setting up a new Windows PC usually prompts you to connect to Wi-Fi or Ethernet. However, you can complete the setup offline to create a local account and avoid mandatory Microsoft sign‑ins. This guide covers both Windows 10 and Windows 11. setup windows without internet