Skip to content

Instantly share code, notes, and snippets.

@jonathanmedd
Created May 3, 2017 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jonathanmedd/a22cd687c558e68b8cbe28016baa82fc to your computer and use it in GitHub Desktop.
Save jonathanmedd/a22cd687c558e68b8cbe28016baa82fc to your computer and use it in GitHub Desktop.
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