Add more reliable support for Windows network configuration