PowerShell – Network Commands

Hi all !

This my first “short” article in english, and I’m very exitected to share with you. The goal of this article is to introduce common network commands “ping, nslookup” but in PowerShell !

 

Ipconfig | Get-NetIPConfiguration or Get-NetIPAddress

Get-NetIPConfiguration

 

 

 

 

 

 

 

Ping | Test-NetConnection zigmax.net

Test-NetConnection

 

 

 

With detailed: Test-NetConnection -ComputerName zigmax.net -InformationLevel Detailed

Test-NetConnection2

 

 

Nslookup | Resolve-DnsName zigmax.net

Resolve-DnsName

 

 

Route print | Get-NetRoute -Protocol Local -DestinationPrefix 192.168*

Get-NetRoute

 

 

Traceroute | Test-NetConnection zigmax.net –TraceRoute

Test-Net-Traceroute

 

 

 

 

 

 

 

Netstat | Get-NetTCPConnection | Group State, RemotePort | Sort Count | FT Count, Name -Autosize

Get-NetTCPConnection

 

 

Do not hesitate to share your comments with us!

Bye.

Start a Conversation

Your email address will not be published. Required fields are marked *