Thursday, May 1, 2014

Test-NetConnection on Windows Server 2012 R2 and Windows 8.1

"Test-NetConnection" is a new cmdlet of PowerShell 4.0 for diagnostic network connection information. To use "Test-NetConnection", make sure the operating systems are Windows Server 2012 R2 and Windows 8.1.

By default, "Test-NetConnection" will try to connect internetbeacon.msedge.net.


1. Administrators can perform "Test-NetConnection -ComputerName <DNS name or IP address>" to ping the destination of a DNS name or IP address.


The ping test succeeded.

2. Perform "Test-NetConnection -ComputerName <DNS name or IP address> -CommonTCPPort RDP" to test the port of Remote Desktop Connection.


The acceptable values of common TCP port are SMB, HTTP, RDP and PING.


3. Perform "Test-NetConnection -ComputerName <DNS name or IP address> -Port <TCP port>" to test the specific port number.


4. Perform "Test-NetConnection -ComputerName <DNS name or IP address> -TraceRoute" to run the trace route.


By default, "Test-NetConnection" show the detail information. We can also perform "-InformationLevel Quiet" to show the simple result.


This posting is provided “AS IS” with no warranties, and confers no rights!

No comments:

Post a Comment