Windows 10 PC wifi keeps disconnecting or says "no internet, secured"
I recently moved and can no longer use an ethernet cable. I have an old Wifi USB (T4U v2) from TP-link that worked perfectly fine when I got it in 2017. I know the internet in my new place works fine, I have a laptop and phone it works well on. The ethernet cable works perfectly with my PC, but its not really viable as a permanent solution due to where the router is.
Now when I use the USB, I get a very strange wifi problem. After inserting it, it will connect to the wifi and it works well from anywhere between 1 second to 5 minutes. After that it goes wrong in one of several ways: - Sometimes it just plain disconnects, then says "unable to connect to this network" when I try to reconnect. - Other times same as above, but it connects again and then disconnects after a second, continuously losing and regaining connection. - Or lastly, it will stay connected, but it says "no internet, secured" - The USB is always able to detect the internet and other nearby networks.
I have tried all kinds of solutions - Windows troubleshooter usually finds some DNS or gateway problem and resets the USB. After reset same thing happens, it works for a random amount of time then stops working. - I installed new drivers from the TP-link website. No change - I have used various command prompts such as /renew and /flushdns - I moved my PC to directly next to the router to see if signal strength was the issue. - Changed preferred band. - Used different USB ports and made sure its the correct version of port. - Messed with the settings on the router, reset it. - I tested a housemates wifi card with my PC and it had the same problems. His is also an old TP-link product, but it works on his PC. I wanted to test my USB with his PC, but he is gone for a while so I can't log in to properly test it. I don't have any other windows devices to test it with.
At one point I managed to stay connected for a whole evening, but the problem was back the next day. Because of this and the fact that the Wifi card didn't work either I feel like the problem is with my PC.