PowerTip: Find Net Route with PowerShell

Doctor Scripto

Summary: Use Windows PowerShell to find a net route to a remote host.

Hey, Scripting Guy! Question How can I use the Find-NetRoute function in Windows 8.1 to find a route to a remote host if I do not have the IP address?

Hey, Scripting Guy! Answer Use the Resolve-DnsName command to find the IP address of the remote host,
          and feed the results to the Find-NetRoute command:

Find-NetRoute -RemoteIPAddress (Resolve-DnsName www.microsoft.com).ip4address


Discussion is closed.

Feedback usabilla icon