Getting Basic Networking Information

by Mar 7, 2016

Beginning with Windows 8.1 and Server 2012 R2, the operating system adds a wealth of new cmdlets for OS management. With these cmdlets, it is almost trivial to manage network adapters, for example:

# requires Windows 8.1/Server 2012 R2 or better

# general info
Get-NetIPConfiguration
Get-NetAdapterHardwareInfo

# managing adapters
Get-NetAdapter
Get-NetAdapter -Name *Wifi*
Get-NetAdapter | Select-Object Name, Status, Linkspeed, VlanID
Get-NetAdapter | Select-Object Name, Driver*
Disable-NetAdapter -Name 'Wi-Fi' -WhatIf
Enable-NetAdapter -Name 'Wi-Fi' -WhatIf
Rename-NetAdapter -Name 'Wi-Fi' -NewName 'WirelessNetwork' -WhatIf

A great networking cheat sheet can be found here: http://www.thomasmaurer.ch/2016/02/basic-networking-powershell-cmdlets-cheatsheet-to-replace-netsh-ipconfig-nslookup-and-more/

Twitter This Tip! ReTweet this Tip!