This is a legitimate Microsoft website, and its purpose is to check whether your computer has Internet access when you connect to certain networks, such as personal, public, hotel, restaurant, and airport Wi-Fi hotspots. If the connection test fails, that's when the Msftconnecttest redirect happens.