

For example, we can test multiple destinations with one command: Test-Connection -ComputerName 8.8.8.8, 1.1.1.1 Source Destination IPV4Address Bytes Time(ms)īut we can of course a lot more. In the simplest form, you can type Test-Connection or to do a quick connectivity test. Just like ping, uses Test-Connection also the ICMP protocol to test the network connectivity of a network device.
#Why does net uptime monitor report no internet connection how to#
PowerShell Test-Connectionīefore we take a look at how to use the Test-NetConnection cmdlet in PowerShell lets first take a quick look at Test-Connection. Test-NetConnection is a lot more powerful and should be your go-to tool when it comes to troubleshooting network problems. The latter was the first step in replacing the ping command, with some advantages. Test-NetConnection is the successor of the PowerShell Test-Connection cmdlet. Most of the time we need to combine the ping command with tracert and nslookup to get all the details we need. It doesn’t do any tracing or port testing.

The advantage of ping is that it’s a really short command to type, but the downside it’s that it only tests networking connecting over ICMP. So it’s now time to replace the ping command with PowerShell Test-NetConnection. Did you know that the ping command, with its 38 years, is older than the command prompt? You probably already have replaced the command prompt from your daily toolset with PowerShell.
