PS腳本獲取網絡適配器狀態

1.shell

Get-WmiObject -Class Win32_NetworkAdapterConfiguration `
-filter "IPEnabled = $true"
2.
Get-WmiObject -Class Win32_NetworkAdapter | 
Format-Table -Property Name, NetConnectionStatus -AutoSize
image
3.netsh interface show interface
Use netsh interface  show interface  to show interface name in dos / powershell
相關文章
相關標籤/搜索