You can test connectivity with the PowerShell administrator mode by using the next commands:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | PS C:\WINDOWS\system32> test-connection -Count 2 PS C:\WINDOWS\system32> Test-NetConnection PS C:\WINDOWS\system32> Test-NetConnection -Port 80 -InformationLevel "Detailed" PS C:\WINDOWS\system32> test-netconnection Ethernet PS C:\WINDOWS\system32> test-netconnection www.google.com PS C:\WINDOWS\system32> test-netconnection www.google.com -CommonTCPPort HTTP PS C:\WINDOWS\system32> test-netconnection www.google.com -TraceRoute PS C:\WINDOWS\system32> Test-WSMan mycomputer PS C:\WINDOWS\system32> $PSVersionTable.PSVersion Major Minor Build Revision ----- ----- ----- -------- 5 1 15063 502 |
Let’s start with Test-NetConnection command. This command displays diagnostic information for a connection. Depending on the input you can test ping test, TCP test, route tracing, and route selection diagnostics and also get info about DNS lookup results, a list… Read More »