Compartir a través de


cool PS script - ipconfig info - just the facts please!

I came across a cool script today.  The intent is to limit the output from ipconfig to only enabled, TCP-bound NICs.  Of course this isn't really ipconfig, it is a wmi call for net info but the result is the same.  I dig the frame output but decided to see how slim I could get it in pure PS form.  Note, Grid-View only works if you have ISE enabled.  If not, list or table might be preferred.

Great idea Mathieu, I will certainly find uses for this!

slim version:

gwmi -class "Win32_NetworkAdapterConfiguration" | ? {$_.IpEnabled -Match "True"} | select Description, MACAddress, IPAddress, IPSubnet, DefaultIPGateway, DNSServerSearchOrder | ogv