Get-InternalIP.ps1 246 B

12345678910
  1. Get-NetIPAddress | Where-Object {
  2. $_.IPAddress -like "10.*"
  3. } | ForEach-Object {
  4. @{
  5. IP=$_.IPAddress;
  6. Index=$_.InterfaceIndex
  7. Adapter=(Get-NetIPInterface -InterfaceIndex $_.InterfaceIndex).InterfaceAlias
  8. }
  9. }