Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Find Net Route with PowerShell

$
0
0

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


Viewing all articles
Browse latest Browse all 3333

Trending Articles