-
-
Save jonathanmedd/a22cd687c558e68b8cbe28016baa82fc to your computer and use it in GitHub Desktop.
Get-WMIObject-Filter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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