Please reset the laptop or PC, then go through the setup/Cortana steps again, until she wanted to connect to WiFi.
Then selected "I don't have internet" to skip this step, and then you be able to complete setup.
You can add your WiFi connection after you're in Windows.