Network Commands in PowerShell

Need something similar to Ipconfig in PowerShell, try these commands.

Get Network Adapter Details in PowerShell.

Get-NetAdapter | ft ifname,ifdesc,ifIndex,MacAddress,status,LinkSpeed,LinkSpeed -AutoSize

Use Get-NetAdapter |FL * for all Details.

Get IP Address Details in PowerShell

Get-NetIPConfiguration| Sort InterfaceIndex | ft InterfaceAlias,InterfaceIndex,InterfaceDescription,AllIPAddresses -AutoSize

OR

Get-NetIPAddress | Sort InterfaceIndex | FT InterfaceIndex, InterfaceAlias, AddressFamily, IPAddress, PrefixLength -Autosize

Use Get-NetIPConfiguration | fl * for all details.

Get Client DNS Settings in PowerShell.

Get-DnsClient | sort interfaceIndex | ft interfaceIndex,InterfaceAlias,ConnectionSpecificSuffix,SuffixSearchList,RegisterThisConnectionsAddress -AutoSize

Get-DnsClientServerAddress |sort interfaceindex | ft InterfaceIndex,InterfaceAlias,ServerAddresses,EnabledState

Leave a Reply