Windows 10 commands can be used to diagnose an Internet connection problems. The commands below are found in older versions of Windows, but our instructions focus on Windows 10. Using the command prompt, Windows 10 will open the Command Prompt and wait for commands that you type in and then press enter to execute. The ping command allows you to check if you can connect to a hostname or an IP address and provide a basic measurement of the latency or lag between your connection and the remote device. If you start seeing ping response times in the hundreds, this indicates a poor connection between you and the site.
Source: https://www.bleepingcomputer.com/news/microsoft/best-windows-10-commands-to-diagnose-your-internet-connection/

