First of all, apologies if this is in the wrong place but I'm not sure whether it's OS related, network related or hardware related at this stage.

I have a laptop in a home environment that WAS running windows 10 absolutely fine. Out of no where it decided it didn't want to connect to my WiFi (Virgin is the ISP, also using a Super Hub). The weird thing was it was asking me for a username as well as a password. After some Googling and trying every possible solution I got no where. I could eventually get it to connect after about half an hour of constant reboots, deleting the wireless profile and netcfg -d commands. I also uninstalled and reinstalled the wireless driver with no joy. Resetting the router eventually did the tick after about 7 tries, it lasted for 2 or so days and then the same thing happened again. Rinse and repeat 3 times and I was so sick of the problem I used the recovery partition on my laptop to restore it to factory (I literally only use it for random internet browsing anyway so I wasn't going to lose anything).

A complete wipe and a downgrade to windows 8.1 later, it still won't connect however it's just saying the password is incorrect rather than ask for a username as well. The password is 100% right, there are so many devices, including other laptops on both windows 8 and 10 that connect to the same network flawlessly.

The one thing I did notice was that after doing a netsh wlan show all it showed that my wifi's encryption method was WEP which is isn't, it's WPA2. Upon discovering this, I logged into the router and changed the encryption method from "WPA Auto" to "WPA2-PSK[AES]". The laptop then connected instantly and I thought I'd fixed it. Unfortunately not, as when turning it on today I had to go through the same awful process until it eventually played ball.

Any suggestions are kindly welcome, thanks.