February 8th, 2015

PowerTip: Use PowerShell to Display Routing

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to display networking routing information.

Hey, Scripting Guy! Question How can I use Windows PowerShell to display information about network connectivity issues related to
           the routing table on my server and permit me to sort the output?

Hey, Scripting Guy! Answer Use the Get-NetRoute Windows PowerShell function, and sort by interface index, nexthop, or other properties,
           for example:

Get-NetRoute | sort ifindex

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.