1.
Get-WmiObject -Class Win32_NetworkAdapterConfiguration ` -filter "IPEnabled = $true"
2.
Get-WmiObject -Class Win32_NetworkAdapter | Format-Table -Property Name, NetConnectionStatus -AutoSize
3.netsh interface show interface
原文:http://www.cnblogs.com/jjkv3/p/3862393.html