Ƭᴇcʜιᴇ007's answer only worked until I restarted my computer but this one works great.
You can try this if you don't mind the network icon not showing that you're connected.
- Open Registry Editor (+R to bring up the Run dialog, then type
regedit
and press Enter).
- Go to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}
.
- There are numbered subkeys starting with 0001. Look in each subkey in descending order for the one with the DriverDesc value having your smartphone's RNDIS driver name (same name shown in your Network Connections view as the "Connect using" value).
- Once located, create a new DWORD (32-bit) Value.
- Enter the name as
*NdisDeviceType
(remember to include the asterisk sign * in front).
- Edit the newly created DWORD value and enter the value data as
1
(Base choice doesn't matter). Click OK.
- Once done, disable and re-enable usb tethering
You will no longer get a prompt asking for network location whenever you connect your smartphone, but you will still get the prompt when connecting to other devices.
Important Note: When you are only connected to your smartphone, your computer's network icon will continue to show that you are not connected to any network. However, the internet will still work fine.