Windows 8.1 and Windows Server 2012 R2 include a new PowerShell cmdlet with the name of Test-NetConnection or TNC. The default usage will return general information.
The –TraceRoute flag will attempt to display trace route data.
The –Port flag will allow testing of a specific TCP port.
The cmdlet has some built-in aliases for some common services, such as RDP.
Other aliases would include SMB, HTTP, and PING.
The flag –InformationLevel Detailed can be used to obtain more data.