Search This Blog

Tuesday, 13 December 2016

Windows 8.x and 10 Update messing with net connections - Here's a Fix

Hi,
    I'll make this quick and not pretty. It's base simple but quite useful if you help your friends and family with IT stuff.

At the time of writing, it seems like Microsoft have released a dodgy update (which to my knowledge hasn't been identified yet). There's something about the DHCP client not retreiving the IP from the router/switch/AP side. I had a good friend at work send me a heads up on this while I was on the way into work today. When I got home, my laptop had lost LAN connection through Wifi.

http://www.theregister.co.uk/2016/12/13/microsoft_windows_10_broken_networking/

There are other sources, but that's a general overview. I read the article and adjusted the fixing lines of code into a simple to use batch script.

Note:This will require a restart of the PC
 - Copy and paste the lines below into a notepad window.
 - Save the text file and rename it 'fix.bat'.
 - Run as administrator:

@Echo Off
call :IsAdmin

echo Running "netsh winsock reset catalog" ...
netsh winsock reset catalog
echo Running "netsh int ipv4 reset reset.log" ...
netsh int ipv4 reset reset.log
Pause & Exit

:IsAdmin
%systemroot%\system32\Reg.exe query "HKU\S-1-5-19\Environment"
If Not %ERRORLEVEL% EQU 0 (
 Cls & Echo You must have administrator rights to continue ... 
 Pause & Exit
)
Cls
goto:eof

No comments: