共用方式為


PowerTip: Use PowerShell to See Network Adapters Bound to TCP/IP

Summary: Use Windows PowerShell 3.0 in Windows 8 to see network adapters that are bound to TCP/IP.

Hey, Scripting Guy! Question How can I find all network adapters that are bound to TCP/IPv4 by using Windows PowerShell 3.0 in Windows 8?

Hey, Scripting Guy! Answer Use the Get-NetAdapterBinding function, pipe the results to a Where-Object cmdlet, and filter for the BindName equal to  ‘tcpip’ :

Get-NetAdapterBinding | where bindname -eq 'tcpip'