Here’s how you make an automated script to disable then re-enable network drivers:
In either Notepad or Notepad++, create a new file.
Copy and paste this text below into your program:
# Disable all network adapters
Get-NetAdapter | Disable-NetAdapter -Confirm:$false
# Wait for 5 seconds
Start-Sleep -Seconds 5
# Enable all network adapters
Get-NetAdapter | Enable-NetAdapter -Confirm:$false
Once you’ve pasted it in there, go to File and select “Save As”
Name the file DisableEnableNetwork.ps1 and change the File Type to All.
Make sure this get’s saved somewhere that isn’t going to be easily accessible by clients.
Next, on your desktop home screen, right click anywhere on the screen, and select “New” in the drop down.
Click “Shortcut”
In the box that shows up, in the location field enter:
powershell.exe -ExecutionPolicy Bypass –File “C:\path\to\DisableEnableNetwork.ps1”
Click Next
Give the shortcut a cool, hip name like “Network Magic Fix”, “Internet Fix Voodoo” or “Wifi Problem Solver” and hit save.
Now when the shortcut is double clicked, it’ll disable then re-enable all network drivers which should fix the problem utun has been causing (until it does it again, then click the shortcut again)