Ping, tracert, ipconfig, route and nslookup in PowerShell

Here is a quick summary of commonly used network commands in PowerShell. The info was gathered from a series of tweets from Jose Baretto.

Update April 20, 2015: Jose just put together a very nice blog post, covering this in great more detail, check it out: Windows PowerShell equivalents for common networking commands (IPCONFIG, PING, NSLOOKUP)

  • ipconfig: Get-NetIPAddress | FT
  • Ping: Test-NetConnection
  • tracert: Test-NetConnection -TraceRoute
  • route: Get-NetRoute
  • nslookup: Resolve-DNSName
image

Happy Deployment

/ Johan

About the author

Johan Arwidmark

5 2 votes
Article Rating
Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
My Taint
My Taint
6 months ago

Thanks a lot. Made my night a whole lot simpler.


>