Windows 8 and 8.1 Forums


Fix Wi-Fi bug on Windows 8.1 Preview

  1. #1


    Posts : 59
    Windows 8.1 Pro

    Fix Wi-Fi bug on Windows 8.1 Preview


    I installed the Windows 8.1 Preview about a week ago and noticed very quickly that there is a bug where the Wi-Fi connection will just stop working once in a while. In my research, I found that this is a very common bug on laptops and that it is being worked on.

    I found that the only real solution to the bug is to disable Wi-Fi and the re-enable it. This is easy on laptops that have a switch that does just that. However, my laptop doesn't have such a switch. It soon became very annoying to have to go into the 'Network Connections' control panel to disable and re-enable the adapter.

    So, I developed a small application that will test to see if your Wi-Fi connection is usable and then do the above steps if needed. I figured I'd put it here for anybody who might find it useful. I've also posted the source code just in case anybody is curious.

    Code:
    using System;
    using System.Diagnostics;
    using System.Net;
    using System.Net.NetworkInformation;
    using System.Threading;
    
    namespace WiFiFixer
    {
        internal class Program
        {
            private static void Main(string[] args)
            {
                bool wiFiFixed = false;
    
                ProcessStartInfo disable = new ProcessStartInfo("netsh", "interface set interface name=\"Wi-Fi\" admin=disabled");
                disable.WindowStyle = ProcessWindowStyle.Hidden;
    
                ProcessStartInfo enable = new ProcessStartInfo("netsh", "interface set interface name=\"Wi-Fi\" admin=enabled");
                enable.WindowStyle = ProcessWindowStyle.Hidden;
    
                Console.WriteLine("Checking connection status...");
                if (PingTest())
                {
                    Console.WriteLine("Connection is good. Exiting.");
                    wiFiFixed = true;
                    return;
                }
                else
                {
                    while (!wiFiFixed)
                    {
                        Console.WriteLine("Disabling Wi-Fi network interface...");
                        var disableProcess = Process.Start(disable);
                        disableProcess.WaitForExit();
    
                        Console.WriteLine("Enabling Wi-Fi network interface...");
                        var enableProcess = Process.Start(enable);
                        enableProcess.WaitForExit();
    
                        Console.WriteLine("Checking connection status...");
                        Thread.Sleep(5000);
                        if (PingTest())
                        {
                            wiFiFixed = true;
                        }
                    }
                }
            }
    
            private static bool PingTest()
            {
                Ping ping = new Ping();
    
                PingReply pingStatus = ping.Send(IPAddress.Parse("74.125.225.196")); //This is Google.com
    
                if (pingStatus.Status == IPStatus.Success)
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
        }
    }
    Mirror
    Fix Wi-Fi bug on Windows 8.1 Preview Attached Files
    Last edited by mattman; 17 Sep 2013 at 13:41.

      My System SpecsSystem Spec

  2. #2


    Sydney, Nova Scotia, Canada
    Posts : 6,490
    Windows 10 Education 64 Bit


    I had that problem when I updated to the preview though the store. I reinstalled my drivers etc but didn't find a fix and went back to 8.0. I hope they sort that out before the final comes out.
      My System SpecsSystem Spec

  3. #3


    Posts : 59
    Windows 8.1 Pro


    I fixed most of my Wi-Fi issues today by updating bios. I hadn't before because it said that the current version and the one I was trying to update to were the same. Today, I thought, "What the heck? It won't hurt anything." After the subsequent reboot, Wi-Fi works awesomely.
      My System SpecsSystem Spec

  4. #4


    Sydney, Nova Scotia, Canada
    Posts : 6,490
    Windows 10 Education 64 Bit


    I did a clean install of 8.1 this morning, no WIFI problems this time around. I did a BIOS update to the latest before that. Not because of the WIFI issue though. I don't know if it was the BIOS update or the clean install that did the trick, or both. Its working OK so I'm happy. My track pad is working correctly too which was also an issue on the previous run of 8.1.
      My System SpecsSystem Spec

  5. #5


    Posts : 2,191
    Windows 8.1


    Quote Originally Posted by mattman View Post
    I fixed most of my Wi-Fi issues today by updating bios. I hadn't before because it said that the current version and the one I was trying to update to were the same. Today, I thought, "What the heck? It won't hurt anything." After the subsequent reboot, Wi-Fi works awesomely.
    Hello mattman,

    Since this is a frequently reported problem, your fix may work for others with that same issue. So now I can assume that a BIOS reflash might (possibly) work for others. Why? Who knows? Thanks for reporting your fix.
      My System SpecsSystem Spec

Fix Wi-Fi bug on Windows 8.1 Preview
Related Threads
How to Hide or Show Preview Handlers in Preview Pane in Windows The preview pane can be used to see the contents of a file, such as an Office document, without opening it in an app. Preview handlers show the content of files (ex: text files) in the preview pane. Turning off preview handlers...
Is it possible to 'install" DP Apps in CP? Where are the 'shortcuts?' for Metro Apps located? Here's path one.. d:\Program Files\Applications\microsoft.build_1.0.1.4_neutral_neutral_8wekyb3d8bbwe\ Here's path two.. d:\Users\Windunce\AppData\microsoft.build_8wekyb3d8bbwe\
My sound used to work in the consumer preview fine but since I upgraded to the Release Preview I need the volume max and headphones in to hear anything. Any help appreciated. If more info is needed just ask.
Hi,can Win8 C.P. be installed without removing Win8 D.P. I guess not, but since until now my Revodrive 3 X2 gave me problems with the Win8 D.P. install, i hate to do a fresh try with the Consumer Preview. I would loose the Win8 is am using now. When starting the setup, hard drive is not...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook