Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Get-WMIObject-Filter
Get-WmiObject -class Win32_NetworkAdapterConfiguration -Filter "IpEnabled = 'True'"
DHCPEnabled : True
IPAddress : {192.168.0.20, fe80::b822:54d5:c3b3:fe55}
DefaultIPGateway : {192.168.0.1}
DNSDomain :
ServiceName : NETwNb64
Description : Intel(R) Dual Band Wireless-AC 7260
Index : 2
PS C:\> Get-WmiObject -class Win32_NetworkAdapterConfiguration | Where-Object {$_.IPEnabled}
DHCPEnabled : True
IPAddress : {192.168.0.20, fe80::b822:54d5:c3b3:fe55}
DefaultIPGateway : {192.168.0.1}
DNSDomain :
ServiceName : NETwNb64
Description : Intel(R) Dual Band Wireless-AC 7260
Index : 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment