$NetworkInfo =gwmi -query "SELECT * FROM Win32_NetworkAdapterConfiguration"
function NetworkInfoSort {$NetworkInfo | Select-Object IPAddress,Description,Index,DefaultIPGateway | sort-object Index}
function NetworkInfoSort {$NetworkInfo | Select-Object IPAddress,Description,Index,DefaultIPGateway | sort-object Index}
PS C:\> NetworkInfoSort | ft -auto
Also useful:
gwmi -class win32_NetworkAdapterConfiguration | %{ $_.IPAddress }
No comments:
Post a Comment