Get-NetIPAddress
Jump to navigation
Jump to search
powershell.exe -NonInteractive -NoProfile -Command '(Get-NetIPAddress | Where-Object {$_.InterfaceAlias -eq ((Get-NetAdapter -Physical | Get-NetAdapterStatistics | Sort-Object -Property SentBytes).Name[-1])}).IPAddress'
Get-NetIPAddress | Where-Object {$_.AddressState -eq "Preferred" -and $_.IPAddress -like "10*"}