The first step in addressing intermittent WiFi problems is to update the hardware driver. Download the latest one from the hardware manufacturer's web site. Don't rely on Windows update to get the right one, as that may be the cause of the problem in the first place. While you’re at it, make sure your router firmware is up to date.